当前位置: 首页>>代码示例>>C#>>正文


C# DataInputStream.readDouble方法代码示例

本文整理汇总了C#中DISnet.DataStreamUtilities.DataInputStream.readDouble方法的典型用法代码示例。如果您正苦于以下问题:C# DataInputStream.readDouble方法的具体用法?C# DataInputStream.readDouble怎么用?C# DataInputStream.readDouble使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DISnet.DataStreamUtilities.DataInputStream的用法示例。


在下文中一共展示了DataInputStream.readDouble方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: unmarshal

        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
               _objectID.unmarshal(dis);
               _referencedObjectID.unmarshal(dis);
               _updateNumber = dis.readUshort();
               _forceID = dis.readByte();
               _modifications = dis.readByte();
               _objectType.unmarshal(dis);
               _objectLocation.unmarshal(dis);
               _objectOrientation.unmarshal(dis);
               _objectAppearance = dis.readDouble();
               _requesterID.unmarshal(dis);
               _receivingID.unmarshal(dis);
               _pad2 = dis.readUint();
            } // end try
               catch(Exception e)
            {
              Trace.WriteLine(e);
              Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:25,代码来源:PointObjectStatePdu.cs

示例2: unmarshal

        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _groupEntityID.unmarshal(dis);
                _groupedEntityCategory = dis.readByte();
                _numberOfGroupedEntities = dis.readByte();
                _pad2 = dis.readUint();
                _latitude = dis.readDouble();
                _longitude = dis.readDouble();
                for(int idx = 0; idx < _numberOfGroupedEntities; idx++)
                {
                    VariableDatum anX = new VariableDatum();
                    anX.unmarshal(dis);
                    _groupedEntityDescriptions.Add(anX);
                };

            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:26,代码来源:IsGroupOfPdu.cs

示例3: unmarshal

        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
               _site = dis.readUshort();
               _application = dis.readUshort();
               _entity = dis.readUshort();
               _forceId = dis.readByte();
               _numberOfArticulationParameters = dis.readByte();
               _entityKind = dis.readByte();
               _domain = dis.readByte();
               _country = dis.readUshort();
               _category = dis.readByte();
               _subcategory = dis.readByte();
               _specific = dis.readByte();
               _extra = dis.readByte();
               _altEntityKind = dis.readByte();
               _altDomain = dis.readByte();
               _altCountry = dis.readUshort();
               _altCategory = dis.readByte();
               _altSubcategory = dis.readByte();
               _altSpecific = dis.readByte();
               _altExtra = dis.readByte();
               _xVelocity = dis.readFloat();
               _yVelocity = dis.readFloat();
               _zVelocity = dis.readFloat();
               _xLocation = dis.readDouble();
               _yLocation = dis.readDouble();
               _zLocation = dis.readDouble();
               _psi = dis.readFloat();
               _theta = dis.readFloat();
               _phi = dis.readFloat();
               _entityAppearance = dis.readUint();
               _deadReckoningAlgorithm = dis.readByte();
               for(int idx = 0; idx < _otherParameters.Length; idx++)
               {
                _otherParameters[idx] = dis.readByte();
               } // end of array unmarshaling
               _xAcceleration = dis.readFloat();
               _yAcceleration = dis.readFloat();
               _zAcceleration = dis.readFloat();
               _xAngularVelocity = dis.readFloat();
               _yAngularVelocity = dis.readFloat();
               _zAngularVelocity = dis.readFloat();
               for(int idx = 0; idx < _marking.Length; idx++)
               {
                _marking[idx] = dis.readByte();
               } // end of array unmarshaling
               _capabilities = dis.readUint();
            for(int idx = 0; idx < _numberOfArticulationParameters; idx++)
            {
               ArticulationParameter anX = new ArticulationParameter();
            anX.unmarshal(dis);
            _articulationParameters.Add(anX);
            };

            } // end try
               catch(Exception e)
            {
              Trace.WriteLine(e);
              Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:65,代码来源:FastEntityStatePdu.cs

示例4: unmarshal

 public void unmarshal(DataInputStream dis)
 {
     try
     {
         _parameterTypeDesignator = dis.readByte();
         _changeIndicator = dis.readByte();
         _partAttachedTo = dis.readUshort();
         _parameterType = dis.readUint();
         _parameterValue = dis.readDouble();
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:16,代码来源:ArticulationParameter.cs

示例5: unmarshal

 public void unmarshal(DataInputStream dis)
 {
     try
     {
        _x = dis.readDouble();
        _y = dis.readDouble();
        _z = dis.readDouble();
     } // end try
        catch(Exception e)
     {
       Trace.WriteLine(e);
       Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:14,代码来源:Vector3Double.cs


注:本文中的DISnet.DataStreamUtilities.DataInputStream.readDouble方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。