Exemple #1
0
 public static double AngleBetween(_Point a, _Point b)
 {
     return(Math.Acos((VectMath.Dot(a, b)) / (VectMath.Magnitude(a) * VectMath.Magnitude(b))));
 }
Exemple #2
0
 public static _Point Project(_Point a, _Point b)
 {
     return(VectMath.Scale(b, (VectMath.Dot(a, b) / (VectMath.SqrMagnitude(b)))));
 }