Example #1
0
 public static void Write(this BinaryWriter writer, Vector2h vector)
 {
     writer.Write(vector.x.value);
     writer.Write(vector.y.value);
 }
Example #2
0
 /// <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;
 }
Example #3
0
 public VertexP3N3T2(Vector3h position, Vector3h normal, Vector2h texCoords)
 {
     Position = position;
     Normal = normal;
     TexCoords = texCoords;
 }
Example #4
0
 /// <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;
 }
Example #5
0
        public static Vector2h ConcentricSampleDiskFloat(Vector2h randomNumbers)
        {
            Vector2d result = ConcentricSampleDisk(new Vector2d(randomNumbers.X, randomNumbers.Y));

            return(new Vector2h((Half)result.X, (Half)result.Y));
        }