MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / operator <

Function operator <

utilities/olcUTIL_Hardware3D.h:382–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380 // Greater/Less-Than Operator overloads - mathematically useless, but handy for "sorted" container storage
381 template<class TL, class TR>
382 inline constexpr bool operator < (const v_3d<TL>& lhs, const v_3d<TR>& rhs)
383 {
384 return (lhs.z < rhs.z) || (lhs.z == rhs.z && lhs.y < rhs.y) || (lhs.z == rhs.z && lhs.y == rhs.y && lhs.x < rhs.x);
385 }
386
387 template<class TL, class TR>
388 inline constexpr bool operator > (const v_3d<TL>& lhs, const v_3d<TR>& rhs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected