Constantsยง
Functionsยง
- clip
- Clip the line pts[0]โฆpts[1] against clip, ignoring segments that lie completely above or below the clip. For portions to the left or right, turn those into vertical line segments that are aligned to the edge of the clip.
- contains_
no_ ๐empty_ check - intersect
- Intersect the line segment against the rect. If there is a non-empty resulting segment, return true and set dst[] to that segment. If not, return false and ignore dst[].
- is_
between_ ๐unsorted - Returns value between the two limits, where the limits are either ascending or descending.
- nested_
lt ๐ - pin_
unsorted_ ๐f32 - pin_
unsorted_ ๐f64 - sect_
clamp_ ๐with_ vertical - sect_
with_ ๐horizontal - Returns X coordinate of intersection with horizontal line at Y.
- sect_
with_ ๐vertical - Returns Y coordinate of intersection with vertical line at X.