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

Method min

include/reactphysics3d/mathematics/Vector3.h:362–366  ·  view source on GitHub ↗

Return a vector taking the minimum components of two vectors

Source from the content-addressed store, hash-verified

360
361// Return a vector taking the minimum components of two vectors
362RP3D_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
369RP3D_FORCE_INLINE Vector3 Vector3::max(const Vector3& vector1, const Vector3& vector2) {

Callers

nothing calls this directly

Calls 1

Vector3Class · 0.70

Tested by

no test coverage detected