MiscUtil.IO.EndianBinaryReader.ReadSingle C# (CSharp) 메소드

ReadSingle() 공개 메소드

Reads a single-precision floating-point value from the stream, using the bit converter for this reader. 4 bytes are read.
public ReadSingle ( ) : float
리턴 float
        public float ReadSingle()
        {
            ReadInternal(buffer, 4);
            return bitConverter.ToSingle(buffer, 0);
        }

Usage Example

예제 #1
0
        protected override void Parse(EndianBinaryReader r)
        {
			Yaw = r.ReadSingle () * Math.PI / 180;
			Pitch = r.ReadSingle () * Math.PI / 180;
			OnGround = r.ReadBoolean ();
#if DEBUG
			//Console.WriteLine("P L: " + Pitch);
#endif
		}
All Usage Examples Of MiscUtil.IO.EndianBinaryReader::ReadSingle