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

Method top

utilities/olcUTIL_Geometry2D.h:664–667  ·  view source on GitHub ↗

Get line segment from top side of rectangle

Source from the content-addressed store, hash-verified

662
663 // Get line segment from top side of rectangle
664 inline line<T> top() const
665 {
666 return { pos, {pos.x + size.x, pos.y } };
667 }
668
669 // Get line segment from bottom side of rectangle
670 inline line<T> bottom() const

Callers 4

ReadMethod · 0.80
closestFunction · 0.80
overlapsFunction · 0.80
projectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected