Return a vector taking the maximum components of two vectors
| 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) { |
| 370 | return Vector3(std::max(vector1.x, vector2.x), |
| 371 | std::max(vector1.y, vector2.y), |
| 372 | std::max(vector1.z, vector2.z)); |
| 373 | } |
| 374 | |
| 375 | // Return the minimum value among the three components of a vector |
| 376 | RP3D_FORCE_INLINE decimal Vector3::getMinValue() const { |