MIST segmentIntersect

From DCS World Wiki - Hoggitworld.com


mist.shape.segmentIntersect

Added with: Mist 4.5
Description
Returns whether or not two line segments intersect and the point at which they intersect.
Syntax
boolean, vec2 mist.shape.segmentIntersect(table segment1 ,table segment2 )
Valid Input Values:
Segment: Table of two points in vec2
Return value:
boolean, vec2
Return example:
boolean, vec3
Usage Examples:
Notes:
Related Functions
insideShape, circleInCircle, circleInPoly, polyInPoly, polyInCircle, getPointOnSegment, segmentIntersect

Scripting Engine

MIST Root Page