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

Method triangle

utilities/olcUTIL_Geometry2D.h:751–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749 std::array<olc::v_2d<T>, 3> pos;
750
751 inline triangle(
752 const olc::v_2d<T>& p0 = { T(0), T(0) },
753 const olc::v_2d<T>& p1 = { T(0), T(0) },
754 const olc::v_2d<T>& p2 = { T(0), T(0) })
755 : pos{ p0,p1,p2 }
756 { }
757
758 // Get a line from an indexed side, starting top, going clockwise
759 inline line<T> side(const size_t i) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected