本文整理汇总了C#中DISnet.DataStreamUtilities.DataOutputStream.writeFloat方法的典型用法代码示例。如果您正苦于以下问题:C# DataOutputStream.writeFloat方法的具体用法?C# DataOutputStream.writeFloat怎么用?C# DataOutputStream.writeFloat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DISnet.DataStreamUtilities.DataOutputStream
的用法示例。
在下文中一共展示了DataOutputStream.writeFloat方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public void marshal(DataOutputStream dos)
{
try
{
dos.writeFloat((float)_powerSetting);
dos.writeFloat((float)_engineRpm);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例2: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public new void marshal(DataOutputStream dos)
{
base.marshal(dos);
try
{
_radioEntityType.marshal(dos);
dos.writeByte((byte)_transmitState);
dos.writeByte((byte)_inputSource);
dos.writeUshort((ushort)_padding1);
_antennaLocation.marshal(dos);
_relativeAntennaLocation.marshal(dos);
dos.writeUshort((ushort)_antennaPatternType);
dos.writeUshort((ushort)_antennaPatternList.Count);
dos.writeUlong((ulong)_frequency);
dos.writeFloat((float)_transmitFrequencyBandwidth);
dos.writeFloat((float)_power);
_modulationType.marshal(dos);
dos.writeUshort((ushort)_cryptoSystem);
dos.writeUshort((ushort)_cryptoKeyId);
dos.writeByte((byte)_modulationParametersList.Count);
dos.writeUshort((ushort)_padding2);
dos.writeByte((byte)_padding3);
for(int idx = 0; idx < _modulationParametersList.Count; idx++)
{
Vector3Float aVector3Float = (Vector3Float)_modulationParametersList[idx];
aVector3Float.marshal(dos);
} // end of list marshalling
for(int idx = 0; idx < _antennaPatternList.Count; idx++)
{
Vector3Float aVector3Float = (Vector3Float)_antennaPatternList[idx];
aVector3Float.marshal(dos);
} // end of list marshalling
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例3: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public void marshal(DataOutputStream dos)
{
try
{
dos.writeFloat((float)_x);
dos.writeFloat((float)_y);
dos.writeFloat((float)_z);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例4: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public new void marshal(DataOutputStream dos)
{
base.marshal(dos);
try
{
_issuingEntityID.marshal(dos);
_collidingEntityID.marshal(dos);
_collisionEventID.marshal(dos);
dos.writeShort((short)_pad);
_contactVelocity.marshal(dos);
dos.writeFloat((float)_mass);
_location.marshal(dos);
dos.writeFloat((float)_collisionResultXX);
dos.writeFloat((float)_collisionResultXY);
dos.writeFloat((float)_collisionResultXZ);
dos.writeFloat((float)_collisionResultYY);
dos.writeFloat((float)_collisionResultYZ);
dos.writeFloat((float)_collisionResultZZ);
_unitSurfaceNormal.marshal(dos);
dos.writeFloat((float)_coefficientOfRestitution);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例5: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public void marshal(DataOutputStream dos)
{
try
{
dos.writeShort((short)_currentShaftRPMs);
dos.writeShort((short)_orderedShaftRPMs);
dos.writeFloat((float)_shaftRPMRateOfChange);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例6: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public new void marshal(DataOutputStream dos)
{
base.marshal(dos);
try
{
_designatingEntityID.marshal(dos);
dos.writeUshort((ushort)_codeName);
_designatedEntityID.marshal(dos);
dos.writeUshort((ushort)_designatorCode);
dos.writeFloat((float)_designatorPower);
dos.writeFloat((float)_designatorWavelength);
_designatorSpotWrtDesignated.marshal(dos);
_designatorSpotLocation.marshal(dos);
dos.writeByte((byte)_deadReckoningAlgorithm);
dos.writeUshort((ushort)_padding1);
dos.writeByte((byte)_padding2);
_entityLinearAcceleration.marshal(dos);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例7: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public void marshal(DataOutputStream dos)
{
try
{
_beamDirection.marshal(dos);
dos.writeFloat((float)_azimuthBeamwidth);
dos.writeFloat((float)_referenceSystem);
dos.writeShort((short)_padding1);
dos.writeByte((byte)_padding2);
dos.writeFloat((float)_ez);
dos.writeFloat((float)_ex);
dos.writeFloat((float)_phase);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例8: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public new void marshal(DataOutputStream dos)
{
base.marshal(dos);
try
{
dos.writeFloat((float)_fieldScale);
dos.writeFloat((float)_fieldOffset);
dos.writeUshort((ushort)_dataValues.Count);
for(int idx = 0; idx < _dataValues.Count; idx++)
{
TwoByteChunk aTwoByteChunk = (TwoByteChunk)_dataValues[idx];
aTwoByteChunk.marshal(dos);
} // end of list marshalling
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例9: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public new void marshal(DataOutputStream dos)
{
base.marshal(dos);
try
{
dos.writeUshort((ushort)_receiverState);
dos.writeUshort((ushort)_padding1);
dos.writeFloat((float)_receivedPoser);
_transmitterEntityId.marshal(dos);
dos.writeUshort((ushort)_transmitterRadioId);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例10: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public void marshal(DataOutputStream dos)
{
try
{
dos.writeUshort((ushort)_activeEmissionParameterIndex);
dos.writeUshort((ushort)_scanPattern);
dos.writeFloat((float)_beamCenterAzimuth);
dos.writeFloat((float)_azimuthalBeamwidth);
dos.writeFloat((float)_beamCenterDE);
dos.writeFloat((float)_deBeamwidth);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例11: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public void marshal(DataOutputStream dos)
{
try
{
dos.writeFloat((float)_erp);
dos.writeFloat((float)_frequency);
dos.writeFloat((float)_pgrf);
dos.writeFloat((float)_pulseWidth);
dos.writeUint((uint)_burstLength);
dos.writeByte((byte)_applicableModes);
dos.writeUshort((ushort)_pad2);
dos.writeByte((byte)_pad3);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例12: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public new void marshal(DataOutputStream dos)
{
base.marshal(dos);
try
{
dos.writeUshort((ushort)_site);
dos.writeUshort((ushort)_application);
dos.writeUshort((ushort)_entity);
dos.writeByte((byte)_forceId);
dos.writeByte((byte)_articulationParameters.Count);
dos.writeByte((byte)_entityKind);
dos.writeByte((byte)_domain);
dos.writeUshort((ushort)_country);
dos.writeByte((byte)_category);
dos.writeByte((byte)_subcategory);
dos.writeByte((byte)_specific);
dos.writeByte((byte)_extra);
dos.writeByte((byte)_altEntityKind);
dos.writeByte((byte)_altDomain);
dos.writeUshort((ushort)_altCountry);
dos.writeByte((byte)_altCategory);
dos.writeByte((byte)_altSubcategory);
dos.writeByte((byte)_altSpecific);
dos.writeByte((byte)_altExtra);
dos.writeFloat((float)_xVelocity);
dos.writeFloat((float)_yVelocity);
dos.writeFloat((float)_zVelocity);
dos.writeDouble((double)_xLocation);
dos.writeDouble((double)_yLocation);
dos.writeDouble((double)_zLocation);
dos.writeFloat((float)_psi);
dos.writeFloat((float)_theta);
dos.writeFloat((float)_phi);
dos.writeUint((uint)_entityAppearance);
dos.writeByte((byte)_deadReckoningAlgorithm);
for(int idx = 0; idx < _otherParameters.Length; idx++)
{
dos.writeByte(_otherParameters[idx]);
} // end of array marshaling
dos.writeFloat((float)_xAcceleration);
dos.writeFloat((float)_yAcceleration);
dos.writeFloat((float)_zAcceleration);
dos.writeFloat((float)_xAngularVelocity);
dos.writeFloat((float)_yAngularVelocity);
dos.writeFloat((float)_zAngularVelocity);
for(int idx = 0; idx < _marking.Length; idx++)
{
dos.writeByte(_marking[idx]);
} // end of array marshaling
dos.writeUint((uint)_capabilities);
for(int idx = 0; idx < _articulationParameters.Count; idx++)
{
ArticulationParameter aArticulationParameter = (ArticulationParameter)_articulationParameters[idx];
aArticulationParameter.marshal(dos);
} // end of list marshalling
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例13: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public void marshal(DataOutputStream dos)
{
try
{
dos.writeFloat((float)_frequency);
dos.writeFloat((float)_frequencyRange);
dos.writeFloat((float)_effectiveRadiatedPower);
dos.writeFloat((float)_pulseRepetitionFrequency);
dos.writeFloat((float)_pulseWidth);
dos.writeFloat((float)_beamAzimuthCenter);
dos.writeFloat((float)_beamAzimuthSweep);
dos.writeFloat((float)_beamElevationCenter);
dos.writeFloat((float)_beamElevationSweep);
dos.writeFloat((float)_beamSweepSync);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例14: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public new void marshal(DataOutputStream dos)
{
base.marshal(dos);
try
{
_issuingEntityID.marshal(dos);
_collidingEntityID.marshal(dos);
_eventID.marshal(dos);
dos.writeByte((byte)_collisionType);
dos.writeByte((byte)_pad);
_velocity.marshal(dos);
dos.writeFloat((float)_mass);
_location.marshal(dos);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例15: marshal
///<summary>
///Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method
///</summary>
public new void marshal(DataOutputStream dos)
{
base.marshal(dos);
try
{
_munitionID.marshal(dos);
_eventID.marshal(dos);
dos.writeUint((uint)_fireMissionIndex);
_locationInWorldCoordinates.marshal(dos);
_burstDescriptor.marshal(dos);
_velocity.marshal(dos);
dos.writeFloat((float)_range);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}