MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / operator<

Method operator<

include/reactphysics3d/mathematics/Vector2.h:324–326  ·  view source on GitHub ↗

Overloaded less than operator for ordering to be used inside std::set for instance

Source from the content-addressed store, hash-verified

322
323// Overloaded less than operator for ordering to be used inside std::set for instance
324RP3D_FORCE_INLINE bool Vector2::operator<(const Vector2& vector) const {
325 return (x == vector.x ? y < vector.y : x < vector.x);
326}
327
328// Return a vector taking the minimum components of two vectors
329RP3D_FORCE_INLINE Vector2 Vector2::min(const Vector2& vector1, const Vector2& vector2) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected