/// <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; }
public void FromScaledVector(Vector3 scaledVector) { scaledVector *= 2; scaledVector -= Vector3.One; X = (HalfSingle)scaledVector.X; Y = (HalfSingle)scaledVector.Y; Z = (HalfSingle)scaledVector.Z; }
/// <summary> /// Constructs the packed vector with a raw value. /// </summary> public HalfVector4(HalfSingle value) : this(value, value, value, value) { }
public void FromVector(Vector3 vector) { X = (HalfSingle)vector.X; Y = (HalfSingle)vector.Y; Z = (HalfSingle)vector.Z; }
/// <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; }