public float SqrMagnitude() { return(Vector4.Dot(this, this)); }
public static float Magnitude(Vector4 a) { return(Mathf.Sqrt(Vector4.Dot(a, a))); }
public static float SqrMagnitude(Vector4 a) { return(Vector4.Dot(a, a)); }
/// <summary> /// <para>Projects a vector onto another vector.</para> /// </summary> /// <param name="a"></param> /// <param name="b"></param> public static Vector4 Project(Vector4 a, Vector4 b) { return(b * Vector4.Dot(a, b) / Vector4.Dot(b, b)); }