void IPackedVector.PackFromVector4(Vector4 vector) { this.packedValue = HalfVector2.PackHelper(vector.X, vector.Y); }
/// <summary> /// Initializes a new instance of the HalfVector2 structure. /// </summary> /// <param name="x">Initial value for the x component.</param><param name="y">Initial value for the y component.</param> public HalfVector2(float x, float y) { this.packedValue = HalfVector2.PackHelper(x, y); }
/// <summary> /// Initializes a new instance of the HalfVector2 structure. /// </summary> /// <param name="vector">A vector containing the initial values for the components of the HalfVector2 structure.</param> public HalfVector2(Vector2 vector) { this.packedValue = HalfVector2.PackHelper(vector.X, vector.Y); }
/// <summary> /// Returns a value that indicates whether the current instance is equal to a specified object. /// </summary> /// <param name="other">The object with which to make the comparison.</param> public bool Equals(HalfVector2 other) { return(this.packedValue.Equals(other.packedValue)); }