示例#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;
 }
示例#2
0
        public void FromScaledVector(Vector3 scaledVector)
        {
            scaledVector *= 2;
            scaledVector -= Vector3.One;

            X = (HalfSingle)scaledVector.X;
            Y = (HalfSingle)scaledVector.Y;
            Z = (HalfSingle)scaledVector.Z;
        }
示例#3
0
 /// <summary>
 /// Constructs the packed vector with a raw value.
 /// </summary>
 public HalfVector4(HalfSingle value) : this(value, value, value, value)
 {
 }
示例#4
0
 public void FromVector(Vector3 vector)
 {
     X = (HalfSingle)vector.X;
     Y = (HalfSingle)vector.Y;
     Z = (HalfSingle)vector.Z;
 }
示例#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;
 }