Module line_clipper

Source

Constantsยง

MAX_POINTS

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.