/// <summary>Transform a Vector by the given Matrix</summary> /// <param name="vec">The vector to transform</param> /// <param name="mat">The desired transformation</param> /// <param name="result">The transformed vector</param> public static void Transform(ref Vector3d vec, ref Matrix4d mat, out Vector4d result) { Vector4d v4 = new Vector4d(vec.X, vec.Y, vec.Z, 1.0f); Vector4d.Transform(ref v4, ref mat, out result); }
/// <summary> /// Constructs a new instance from the given Vector4d. /// </summary> /// <param name="v">The Vector4d to copy components from.</param> public Vector3d(Vector4d v) { X = v.X; Y = v.Y; Z = v.Z; }