MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / max

Method max

include/reactphysics3d/mathematics/Vector3.h:369–373  ·  view source on GitHub ↗

Return a vector taking the maximum components of two vectors

Source from the content-addressed store, hash-verified

367
368// Return a vector taking the maximum components of two vectors
369RP3D_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
376RP3D_FORCE_INLINE decimal Vector3::getMinValue() const {

Callers

nothing calls this directly

Calls 1

Vector3Class · 0.70

Tested by

no test coverage detected