MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / envelope_r

Function envelope_r

utilities/olcUTIL_Geometry2D.h:2028–2031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2026 // Return rectangle that fully encapsulates a point
2027 template<typename T1>
2028 inline constexpr rect<T1> envelope_r(const olc::v_2d<T1>& p)
2029 {
2030 return rect<T1>(p, { 0,0 });
2031 }
2032
2033 // envelope_r(l)
2034 // Return rectangle that fully encapsulates a line

Callers 1

bounding_boxFunction · 0.85

Calls 2

minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected