Return a vector taking the minimum components of two vectors
| 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) { |
| 330 | return Vector2(std::min(vector1.x, vector2.x), |
| 331 | std::min(vector1.y, vector2.y)); |
| 332 | } |
| 333 | |
| 334 | // Return a vector taking the maximum components of two vectors |
| 335 | RP3D_FORCE_INLINE Vector2 Vector2::max(const Vector2& vector1, const Vector2& vector2) { |