public static void CrossToOut(Vec3 a, Vec3 b, Vec3 result) { float tempy = a.Z * b.X - a.X * b.Z; float tempz = a.X * b.Y - a.Y * b.X; result.X = a.Y * b.Z - a.Z * b.Y; result.Y = tempy; result.Z = tempz; }