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


C# DataOutputStream.WriteFloat方法代码示例

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


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

示例1: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteFloat((float)this._x);
             dos.WriteFloat((float)this._y);
             dos.WriteFloat((float)this._z);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:20,代码来源:AngularVelocityVector.cs

示例2: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedInt((uint)this._recordType);
             dos.WriteUnsignedShort((ushort)this._recordLength);
             dos.WriteUnsignedShort((ushort)this._padding);
             dos.WriteUnsignedByte((byte)this._emitterNumber);
             dos.WriteUnsignedByte((byte)this._beamNumber);
             dos.WriteUnsignedByte((byte)this._stateIndicator);
             dos.WriteUnsignedInt((uint)this._padding2);
             dos.WriteFloat((float)this._azimuthOffset);
             dos.WriteFloat((float)this._azimuthWidth);
             dos.WriteFloat((float)this._azimuthPullRate);
             dos.WriteFloat((float)this._azimuthPullAcceleration);
             dos.WriteFloat((float)this._elevationOffset);
             dos.WriteFloat((float)this._elevationWidth);
             dos.WriteFloat((float)this._elevationPullRate);
             dos.WriteFloat((float)this._elevationPullAcceleration);
             dos.WriteUnsignedInt((uint)this._padding3);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:33,代码来源:AngleDeception.cs

示例3: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteFloat((float)this._frequency);
             dos.WriteFloat((float)this._frequencyRange);
             dos.WriteFloat((float)this._effectiveRadiatedPower);
             dos.WriteFloat((float)this._pulseRepetitionFrequency);
             dos.WriteFloat((float)this._pulseWidth);
             dos.WriteFloat((float)this._beamAzimuthCenter);
             dos.WriteFloat((float)this._beamAzimuthSweep);
             dos.WriteFloat((float)this._beamElevationCenter);
             dos.WriteFloat((float)this._beamElevationSweep);
             dos.WriteFloat((float)this._beamSweepSync);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:27,代码来源:FundamentalParameterData.cs

示例4: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteShort((short)this._currentShaftRPMs);
             dos.WriteShort((short)this._orderedShaftRPMs);
             dos.WriteFloat((float)this._shaftRPMRateOfChange);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:20,代码来源:ShaftRPMs.cs

示例5: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteFloat((float)this._beamAzimuthCenter);
             dos.WriteFloat((float)this._beamAzimuthSweep);
             dos.WriteFloat((float)this._beamElevationCenter);
             dos.WriteFloat((float)this._beamElevationSweep);
             dos.WriteFloat((float)this._beamSweepSync);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:22,代码来源:BeamData.cs

示例6: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedInt((uint)this._recordType);
             dos.WriteUnsignedShort((ushort)this._recordLength);
             dos.WriteUnsignedByte((byte)this._emitterNumber);
             dos.WriteUnsignedByte((byte)this._beamNumber);
             dos.WriteUnsignedByte((byte)this._stateIndicator);
             dos.WriteFloat((float)this._leftAzimuth);
             dos.WriteFloat((float)this._rightAzimuth);
             dos.WriteFloat((float)this._lowerElevation);
             dos.WriteFloat((float)this._upperElevation);
             dos.WriteFloat((float)this._residualPower);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:27,代码来源:BlankingSector.cs

示例7: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedInt((uint)this._recordType);
             dos.WriteUnsignedShort((ushort)this._recordLength);
             dos.WriteUnsignedShort((ushort)this._padding);
             this._targetSpotLocation.Marshal(dos);
             this._targetSpotEntityLocation.Marshal(dos);
             this._targetSpotVelocity.Marshal(dos);
             this._targetSpotAcceleration.Marshal(dos);
             this._targetEntityID.Marshal(dos);
             dos.WriteUnsignedByte((byte)this._targetComponentID);
             dos.WriteUnsignedByte((byte)this._SpotShape);
             dos.WriteFloat((float)this._BeamSpotXSecSemiMajorAxis);
             dos.WriteFloat((float)this._BeamSpotCrossSectionSemiMinorAxis);
             dos.WriteFloat((float)this._BeamSpotCrossSectionOrientAngle);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:30,代码来源:DirectedEnergyPrecisionAimpoint.cs

示例8: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteFloat((float)this._horizontalDeflectionAngle);
             dos.WriteFloat((float)this._verticalDeflectionAngle);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:19,代码来源:VectoringNozzleSystem.cs

示例9: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedShort((ushort)this._activeEmissionParameterIndex);
             dos.WriteUnsignedShort((ushort)this._scanPattern);
             dos.WriteFloat((float)this._beamCenterAzimuthHorizontal);
             dos.WriteFloat((float)this._azimuthalBeamwidthHorizontal);
             dos.WriteFloat((float)this._beamCenterDepressionElevation);
             dos.WriteFloat((float)this._beamwidthDownElevation);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:23,代码来源:UAFundamentalParameter.cs

示例10: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             this._explodingObject.Marshal(dos);
             dos.WriteUnsignedShort((ushort)this._explosiveMaterial);
             dos.WriteUnsignedShort((ushort)this._padding);
             dos.WriteFloat((float)this._explosiveForce);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:21,代码来源:ExplosionDescriptor.cs

示例11: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             this._beamDirection.Marshal(dos);
             dos.WriteFloat((float)this._azimuthBeamwidth);
             dos.WriteFloat((float)this._elevationBeamwidth);
             dos.WriteFloat((float)this._referenceSystem);
             dos.WriteUnsignedByte((byte)this._padding1);
             dos.WriteUnsignedShort((ushort)this._padding2);
             dos.WriteFloat((float)this._ez);
             dos.WriteFloat((float)this._ex);
             dos.WriteFloat((float)this._phase);
             dos.WriteUnsignedInt((uint)this._padding3);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:27,代码来源:BeamAntennaPattern.cs

示例12: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             this._targetEntityID.Marshal(dos);
             dos.WriteUnsignedShort((ushort)this._padding);
             dos.WriteFloat((float)this._peakIrradiance);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:20,代码来源:DirectedEnergyTargetEnergyDeposition.cs

示例13: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteFloat((float)this._erp);
             dos.WriteFloat((float)this._frequency);
             dos.WriteFloat((float)this._pgrf);
             dos.WriteFloat((float)this._pulseWidth);
             dos.WriteUnsignedInt((uint)this._burstLength);
             dos.WriteUnsignedByte((byte)this._applicableModes);
             dos.WriteUnsignedShort((ushort)this._pad2);
             dos.WriteUnsignedByte((byte)this._pad3);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:25,代码来源:FundamentalParameterDataIff.cs

示例14: Marshal

 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedInt((uint)this._recordType);
             dos.WriteUnsignedShort((ushort)this._recordLength);
             dos.WriteUnsignedShort((ushort)this._padding);
             dos.WriteUnsignedByte((byte)this._emitterNumber);
             dos.WriteUnsignedByte((byte)this._beamNumber);
             dos.WriteUnsignedByte((byte)this._stateIndicator);
             dos.WriteUnsignedByte((byte)this._padding2);
             dos.WriteFloat((float)this._falseTargetCount);
             dos.WriteFloat((float)this._walkSpeed);
             dos.WriteFloat((float)this._walkAcceleration);
             dos.WriteFloat((float)this._maximumWalkDistance);
             dos.WriteFloat((float)this._keepTime);
             dos.WriteFloat((float)this._echoSpacing);
             dos.WriteUnsignedInt((uint)this._padding3);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:31,代码来源:FalseTargetsAttribute.cs

示例15: Marshal

        public virtual void Marshal(DataOutputStream dos)
        {
            if (dos != null)
            {
                try
                {
                    dos.WriteFloat((float)this._erp);
                    dos.WriteFloat((float)this._frequency);
                    dos.WriteFloat((float)this._pgrf);
                    dos.WriteFloat((float)this._pulseWidth);
                    dos.WriteUnsignedInt((uint)this._burstLength);
                    dos.WriteUnsignedByte((byte)this._applicableModes);

                    for (int idx = 0; idx < this._systemSpecificData.Length; idx++)
                    {
                        dos.WriteUnsignedByte(this._systemSpecificData[idx]);
                    }
                }
                catch (Exception e)
                {
            #if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
            #endif
                    this.OnException(e);
                }
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:28,代码来源:IFFFundamentalParameterData.cs


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