Return a vector taking the maximum components of two vectors
| 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) { |
| 336 | return Vector2(std::max(vector1.x, vector2.x), |
| 337 | std::max(vector1.y, vector2.y)); |
| 338 | } |
| 339 | |
| 340 | // Get the string representation |
| 341 | RP3D_FORCE_INLINE std::string Vector2::to_string() const { |