Math.Geometry


Intersection2D Module

Functions and values

Function or value Description

boundingBoxAndLine bbox line

Full Usage: boundingBoxAndLine bbox line

Parameters:
Returns: Point2D<'Units, 'Coordinates> list

Get all the intersection points between a bounding box and a line

bbox : BoundingBox2D<'Units, 'Coordinates>
line : Line2D<'Units, 'Coordinates>
Returns: Point2D<'Units, 'Coordinates> list

lineAndLineSegment line segment

Full Usage: lineAndLineSegment line segment

Parameters:
Returns: Point2D<'a, 'b> option
line : Line2D<'a, 'b>
segment : LineSegment2D<'a, 'b>
Returns: Point2D<'a, 'b> option

lineSegmentAndLine first second

Full Usage: lineSegmentAndLine first second

Parameters:
Returns: Point2D<'Units, 'Coordinates> option

Try to find the intersection between a line segment and a line. If the lines are parallel (even if they are overlapping) then no intersection is returned.

first : LineSegment2D<'Units, 'Coordinates>
second : Line2D<'Units, 'Coordinates>
Returns: Point2D<'Units, 'Coordinates> option