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

Method min

include/reactphysics3d/mathematics/Vector2.h:329–332  ·  view source on GitHub ↗

Return a vector taking the minimum components of two vectors

Source from the content-addressed store, hash-verified

327
328// Return a vector taking the minimum components of two vectors
329RP3D_FORCE_INLINE Vector2 Vector2::min(const Vector2& vector1, const Vector2& vector2) {
330 return Vector2(std::min(vector1.x, vector2.x),
331 std::min(vector1.y, vector2.y));
332}
333
334// Return a vector taking the maximum components of two vectors
335RP3D_FORCE_INLINE Vector2 Vector2::max(const Vector2& vector1, const Vector2& vector2) {

Callers

nothing calls this directly

Calls 1

Vector2Class · 0.70

Tested by

no test coverage detected