public static void Write(this BinaryWriter writer, Vector2h vector) { writer.Write(vector.x.value); writer.Write(vector.y.value); }
/// <summary>Read a <see cref="Vector2h"/>.</summary> public static void ReadVector2h(this BinaryReader reader , out Vector2h result) { result.X = reader.ReadFloat16(); result.Y = reader.ReadFloat16(); return; }
public VertexP3N3T2(Vector3h position, Vector3h normal, Vector2h texCoords) { Position = position; Normal = normal; TexCoords = texCoords; }
/// <summary>Read an array of <c>Vector2h</c> values.</summary> public static Vector2h[] ReadArrayVector2h(this BinaryReader reader, int count) { Vector2h[] array = new Vector2h[count]; reader.ReadArray(array, 0, count); return array; }
public static Vector2h ConcentricSampleDiskFloat(Vector2h randomNumbers) { Vector2d result = ConcentricSampleDisk(new Vector2d(randomNumbers.X, randomNumbers.Y)); return(new Vector2h((Half)result.X, (Half)result.Y)); }