Click or drag to resize

LineToolsLineIntersect Method

Overload List
  NameDescription
Public methodStatic memberLineIntersect(Vector2, Vector2, Vector2, Vector2)
Public methodStatic memberLineIntersect(Vector2, Vector2, Vector2, Vector2, Vector2)
This method detects if two line segments intersect, and, if so, the point of intersection. Note: If two line segments are coincident, then no intersection is detected (there are actually infinite intersection points).
Public methodStatic memberLineIntersect(Vector2, Vector2, Vector2, Vector2, Vector2)
This method detects if two line segments intersect, and, if so, the point of intersection. Note: If two line segments are coincident, then no intersection is detected (there are actually infinite intersection points).
Public methodStatic memberLineIntersect(Vector2, Vector2, Vector2, Vector2, Boolean, Boolean, Vector2)
This method detects if two line segments (or lines) intersect, and, if so, the point of intersection. Use the firstIsSegment and secondIsSegment parameters to set whether the intersection point must be on the first and second line segments. Setting these both to true means you are doing a line-segment to line-segment intersection. Setting one of them to true means you are doing a line to line-segment intersection test, and so on. Note: If two line segments are coincident, then no intersection is detected (there are actually infinite intersection points). Author: Jeremy Bell
Public methodStatic memberLineIntersect(Vector2, Vector2, Vector2, Vector2, Boolean, Boolean, Vector2)
This method detects if two line segments (or lines) intersect, and, if so, the point of intersection. Use the firstIsSegment and secondIsSegment parameters to set whether the intersection point must be on the first and second line segments. Setting these both to true means you are doing a line-segment to line-segment intersection. Setting one of them to true means you are doing a line to line-segment intersection test, and so on. Note: If two line segments are coincident, then no intersection is detected (there are actually infinite intersection points). Author: Jeremy Bell
Top
See Also