public static float Dot( Vector3 vector1, Vector3 vector2 ) { return vector1.X * vector2.X + vector1.Y * vector2.Y + vector1.Z * vector2.Z; }