コード例 #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;
 }
コード例 #6
0
 /// <summary>
 /// Constructs the packed vector with raw values.
 /// </summary>
 public HalfVector2(HalfSingle x, HalfSingle y)
 {
     X = x;
     Y = y;
 }