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

Method max

include/reactphysics3d/mathematics/Vector2.h:335–338  ·  view source on GitHub ↗

Return a vector taking the maximum components of two vectors

Source from the content-addressed store, hash-verified

333
334// Return a vector taking the maximum components of two vectors
335RP3D_FORCE_INLINE Vector2 Vector2::max(const Vector2& vector1, const Vector2& vector2) {
336 return Vector2(std::max(vector1.x, vector2.x),
337 std::max(vector1.y, vector2.y));
338}
339
340// Get the string representation
341RP3D_FORCE_INLINE std::string Vector2::to_string() const {

Callers

nothing calls this directly

Calls 1

Vector2Class · 0.70

Tested by

no test coverage detected