public static float Dot(Vector3Old a, Vector3Old b) { return(a.x * b.x + a.y * b.y + a.z * b.z); }
public static float Angle(Vector3Old from, Vector3Old to) { return((float)Math.Acos(MathUtils.Clamp(Dot(from.Normalized, to.Normalized), -1f, 1f)) * 57.29578f); }