本文整理汇总了C#中DISnet.DataStreamUtilities.DataInputStream.readFloat方法的典型用法代码示例。如果您正苦于以下问题:C# DataInputStream.readFloat方法的具体用法?C# DataInputStream.readFloat怎么用?C# DataInputStream.readFloat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DISnet.DataStreamUtilities.DataInputStream
的用法示例。
在下文中一共展示了DataInputStream.readFloat方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_powerSetting = dis.readFloat();
_engineRpm = dis.readFloat();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例2: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_radioEntityType.unmarshal(dis);
_transmitState = dis.readByte();
_inputSource = dis.readByte();
_padding1 = dis.readUshort();
_antennaLocation.unmarshal(dis);
_relativeAntennaLocation.unmarshal(dis);
_antennaPatternType = dis.readUshort();
_antennaPatternCount = dis.readUshort();
_frequency = dis.readUlong();
_transmitFrequencyBandwidth = dis.readFloat();
_power = dis.readFloat();
_modulationType.unmarshal(dis);
_cryptoSystem = dis.readUshort();
_cryptoKeyId = dis.readUshort();
_modulationParameterCount = dis.readByte();
_padding2 = dis.readUshort();
_padding3 = dis.readByte();
for(int idx = 0; idx < _modulationParameterCount; idx++)
{
Vector3Float anX = new Vector3Float();
anX.unmarshal(dis);
_modulationParametersList.Add(anX);
};
for(int idx = 0; idx < _antennaPatternCount; idx++)
{
Vector3Float anX = new Vector3Float();
anX.unmarshal(dis);
_antennaPatternList.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例3: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_x = dis.readFloat();
_y = dis.readFloat();
_z = dis.readFloat();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例4: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_issuingEntityID.unmarshal(dis);
_collidingEntityID.unmarshal(dis);
_collisionEventID.unmarshal(dis);
_pad = dis.readShort();
_contactVelocity.unmarshal(dis);
_mass = dis.readFloat();
_location.unmarshal(dis);
_collisionResultXX = dis.readFloat();
_collisionResultXY = dis.readFloat();
_collisionResultXZ = dis.readFloat();
_collisionResultYY = dis.readFloat();
_collisionResultYZ = dis.readFloat();
_collisionResultZZ = dis.readFloat();
_unitSurfaceNormal.unmarshal(dis);
_coefficientOfRestitution = dis.readFloat();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例5: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_currentShaftRPMs = dis.readShort();
_orderedShaftRPMs = dis.readShort();
_shaftRPMRateOfChange = dis.readFloat();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例6: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_designatingEntityID.unmarshal(dis);
_codeName = dis.readUshort();
_designatedEntityID.unmarshal(dis);
_designatorCode = dis.readUshort();
_designatorPower = dis.readFloat();
_designatorWavelength = dis.readFloat();
_designatorSpotWrtDesignated.unmarshal(dis);
_designatorSpotLocation.unmarshal(dis);
_deadReckoningAlgorithm = dis.readByte();
_padding1 = dis.readUshort();
_padding2 = dis.readByte();
_entityLinearAcceleration.unmarshal(dis);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例7: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_beamDirection.unmarshal(dis);
_azimuthBeamwidth = dis.readFloat();
_referenceSystem = dis.readFloat();
_padding1 = dis.readShort();
_padding2 = dis.readByte();
_ez = dis.readFloat();
_ex = dis.readFloat();
_phase = dis.readFloat();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例8: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_fieldScale = dis.readFloat();
_fieldOffset = dis.readFloat();
_numberOfValues = dis.readUshort();
for(int idx = 0; idx < _numberOfValues; idx++)
{
TwoByteChunk anX = new TwoByteChunk();
anX.unmarshal(dis);
_dataValues.Add(anX);
};
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例9: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_receiverState = dis.readUshort();
_padding1 = dis.readUshort();
_receivedPoser = dis.readFloat();
_transmitterEntityId.unmarshal(dis);
_transmitterRadioId = dis.readUshort();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例10: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_activeEmissionParameterIndex = dis.readUshort();
_scanPattern = dis.readUshort();
_beamCenterAzimuth = dis.readFloat();
_azimuthalBeamwidth = dis.readFloat();
_beamCenterDE = dis.readFloat();
_deBeamwidth = dis.readFloat();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例11: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_erp = dis.readFloat();
_frequency = dis.readFloat();
_pgrf = dis.readFloat();
_pulseWidth = dis.readFloat();
_burstLength = dis.readUint();
_applicableModes = dis.readByte();
_pad2 = dis.readUshort();
_pad3 = dis.readByte();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例12: 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();
}
}
示例13: unmarshal
public void unmarshal(DataInputStream dis)
{
try
{
_frequency = dis.readFloat();
_frequencyRange = dis.readFloat();
_effectiveRadiatedPower = dis.readFloat();
_pulseRepetitionFrequency = dis.readFloat();
_pulseWidth = dis.readFloat();
_beamAzimuthCenter = dis.readFloat();
_beamAzimuthSweep = dis.readFloat();
_beamElevationCenter = dis.readFloat();
_beamElevationSweep = dis.readFloat();
_beamSweepSync = dis.readFloat();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例14: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_issuingEntityID.unmarshal(dis);
_collidingEntityID.unmarshal(dis);
_eventID.unmarshal(dis);
_collisionType = dis.readByte();
_pad = dis.readByte();
_velocity.unmarshal(dis);
_mass = dis.readFloat();
_location.unmarshal(dis);
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}
示例15: unmarshal
public new void unmarshal(DataInputStream dis)
{
base.unmarshal(dis);
try
{
_munitionID.unmarshal(dis);
_eventID.unmarshal(dis);
_fireMissionIndex = dis.readUint();
_locationInWorldCoordinates.unmarshal(dis);
_burstDescriptor.unmarshal(dis);
_velocity.unmarshal(dis);
_range = dis.readFloat();
} // end try
catch(Exception e)
{
Trace.WriteLine(e);
Trace.Flush();
}
}