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

Method right

utilities/olcUTIL_Geometry2D.h:682–685  ·  view source on GitHub ↗

Get line segment from right side of rectangle

Source from the content-addressed store, hash-verified

680
681 // Get line segment from right side of rectangle
682 inline line<T> right() const
683 {
684 return { {pos.x + size.x, pos.y }, pos + size };
685 }
686
687 // Get a line from an indexed side, starting top, going clockwise
688 inline line<T> side(const size_t i) const

Callers 3

closestFunction · 0.80
overlapsFunction · 0.80
projectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected