Overloaded less than operator for ordering to be used inside std::set for instance
| 322 | |
| 323 | // Overloaded less than operator for ordering to be used inside std::set for instance |
| 324 | RP3D_FORCE_INLINE bool Vector2::operator<(const Vector2& vector) const { |
| 325 | return (x == vector.x ? y < vector.y : x < vector.x); |
| 326 | } |
| 327 | |
| 328 | // Return a vector taking the minimum components of two vectors |
| 329 | RP3D_FORCE_INLINE Vector2 Vector2::min(const Vector2& vector1, const Vector2& vector2) { |
nothing calls this directly
no outgoing calls
no test coverage detected