public static double DotProduct(NI3dVector v1, NI3dVector v2) { return ( v1.x1 * v2.x1 + v1.x2 * v2.x2 + v1.x3 * v2.x3 ); }
public static double AngleBetween(NI3dVector v1, NI3dVector v2) { return(Math.Acos(NI3dVector.DotProduct(v1, v2) / (v1.Magnitude * v2.Magnitude))); }
public double DotProduct(NI3dVector v2) { return(DotProduct(this, v2)); }
public double AngleBetween(NI3dVector v2) { return(AngleBetween(this, v2)); }