public static double operator *(Vector lhs, Vector rhs) { Vector result = new Vector(); result.x = lhs.x * rhs.x; result.y = lhs.y * rhs.y; result.z = lhs.z * rhs.z; result.w = lhs.w * rhs.w; return result.sum(); }