Beispiel #1
0
 /// <summary>
 /// Constructs the packed vector with raw values.
 /// </summary>
 public HalfVector4(HalfSingle x, HalfSingle y, HalfSingle z, HalfSingle w)
 {
     X = x;
     Y = y;
     Z = z;
     W = w;
 }
Beispiel #2
0
        public void FromScaledVector(Vector3 scaledVector)
        {
            scaledVector *= 2;
            scaledVector -= Vector3.One;

            X = (HalfSingle)scaledVector.X;
            Y = (HalfSingle)scaledVector.Y;
            Z = (HalfSingle)scaledVector.Z;
        }
Beispiel #3
0
 /// <summary>
 /// Constructs the packed vector with a raw value.
 /// </summary>
 public HalfVector4(HalfSingle value) : this(value, value, value, value)
 {
 }
Beispiel #4
0
 public void FromVector(Vector3 vector)
 {
     X = (HalfSingle)vector.X;
     Y = (HalfSingle)vector.Y;
     Z = (HalfSingle)vector.Z;
 }
Beispiel #5
0
 /// <summary>
 /// Constructs the packed vector with raw values.
 /// </summary>
 public HalfVector3(HalfSingle x, HalfSingle y, HalfSingle z)
 {
     X = x;
     Y = y;
     Z = z;
 }
 /// <summary>
 /// Constructs the packed vector with raw values.
 /// </summary>
 public HalfVector2(HalfSingle x, HalfSingle y)
 {
     X = x;
     Y = y;
 }