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

Method side

utilities/olcUTIL_Geometry2D.h:759–762  ·  view source on GitHub ↗

Get a line from an indexed side, starting top, going clockwise

Source from the content-addressed store, hash-verified

757
758 // Get a line from an indexed side, starting top, going clockwise
759 inline line<T> side(const size_t i) const
760 {
761 return line(pos[i % 3], pos[(i + 1) % 3]);
762 }
763
764 // Get area of triangle
765 inline constexpr T area() const

Callers

nothing calls this directly

Calls 1

lineClass · 0.85

Tested by

no test coverage detected