/// <summary> /// Initializes a new instance of the HalfVector4 structure. /// </summary> /// <param name="vector">A vector containing the initial values for the components of the HalfVector4 structure.</param> public HalfVector4(Vector4 vector) { this.PackedValue = HalfVector4.PackHelper(vector.X, vector.Y, vector.Z, vector.W); }
void IPackedVector.PackFromVector4(Vector4 vector) { this.PackedValue = HalfVector4.PackHelper(vector.X, vector.Y, vector.Z, vector.W); }
/// <summary> /// Initializes a new instance of the HalfVector4 class. /// </summary> /// <param name="x">Initial value for the x component.</param><param name="y">Initial value for the y component.</param><param name="z">Initial value for the z component.</param><param name="w">Initial value for the w component.</param> public HalfVector4(float x, float y, float z, float w) { this.PackedValue = HalfVector4.PackHelper(x, y, z, w); }