Return a vector taking the minimum components of two vectors
| 360 | |
| 361 | // Return a vector taking the minimum components of two vectors |
| 362 | RP3D_FORCE_INLINE Vector3 Vector3::min(const Vector3& vector1, const Vector3& vector2) { |
| 363 | return Vector3(std::min(vector1.x, vector2.x), |
| 364 | std::min(vector1.y, vector2.y), |
| 365 | std::min(vector1.z, vector2.z)); |
| 366 | } |
| 367 | |
| 368 | // Return a vector taking the maximum components of two vectors |
| 369 | RP3D_FORCE_INLINE Vector3 Vector3::max(const Vector3& vector1, const Vector3& vector2) { |