public static HalfToSingle ( ushort half ) : float | ||
half | ushort | |
Результат | float |
protected Vector2 ReadHalfVector2(GR2Reader reader) { Vector2 v; v.X = HalfHelpers.HalfToSingle(reader.Reader.ReadUInt16()); v.Y = HalfHelpers.HalfToSingle(reader.Reader.ReadUInt16()); return(v); }
public static Vector3 ReadHalfVector3(GR2Reader reader) { Vector3 v; v.X = HalfHelpers.HalfToSingle(reader.Reader.ReadUInt16()); v.Y = HalfHelpers.HalfToSingle(reader.Reader.ReadUInt16()); v.Z = HalfHelpers.HalfToSingle(reader.Reader.ReadUInt16()); return(v); }