class SegmentExt
package nb.ext
Static methods
staticinlinecheckSeg(seg1:Segment, seg2:Segment):Null<Array<Dynamic>>
Checks if two segments intersects.
This function is a shortcut to the nb.phys.Collision.checkSegments
function.
Parameters:
seg1 | The first segment. |
---|---|
seg2 | The second segment. |
Returns:
If there's an intersection, an array with at index 0 the point of the intersection,
and at index 1 the overlapping part of the two segments. Returns null
if there is no intersection.