示例#1
0
 public static Vector Projection(this Vector of, Vector onto) => (onto.Dot(of) / onto.MagnitudeSquared()).Scale(onto);
示例#2
0
 public static double Magnitude(this Vector v1) => Sqrt(v1.MagnitudeSquared());