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

Method left

utilities/olcUTIL_Geometry2D.h:676–679  ·  view source on GitHub ↗

Get line segment from left side of rectangle

Source from the content-addressed store, hash-verified

674
675 // Get line segment from left side of rectangle
676 inline line<T> left() const
677 {
678 return { pos, {pos.x, pos.y + size.y} };
679 }
680
681 // Get line segment from right side of rectangle
682 inline line<T> right() const

Callers 3

closestFunction · 0.80
overlapsFunction · 0.80
projectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected