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

Method rect

utilities/olcUTIL_Geometry2D.h:653–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651 olc::v_2d<T> size;
652
653 inline rect(const olc::v_2d<T>& p = { T(0), T(0) },
654 const olc::v_2d<T>& s = { T(1), T(1) })
655 : pos(p), size(s)
656 { }
657
658 inline olc::v_2d<T> middle() const
659 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected