public static double GetAngle(Vector3D a, Vector3D b, bool inDegrees = false) { a.Normallize(); b.Normallize(); double cosAngle = DotProduct(a, b); double angle = Math.Acos(cosAngle); return(inDegrees ? angle * 180.0 / PI : angle); }