If crossing exist, then result can be of array of points,
or full or brownout coincidence of shapes.
If variable
isCoincidence=false, it means that shapes are crossing and not equally.
In that case array
currentTimes will have interators of points of crossing
on current objects, and array
targetTimes will contain interators of points
of crossing on object.
If variable
isCoincidence=true, it means that found coincidence.
Coincidence describes by pair of interators, determinant begin and end of shape coincidence.
Use method
getSegment for get coincidence shapes.
For example, if you get crossing of two curves of Bezier, you must check,
are they crossing? And further work in influence from his type:
var intersection:Intersection = currentBezier.intersectionBezier(targetBezier);
if (intersection) {
if (intersection.isCoincidence) {
// processing of coincidence
} else {
// processing of crossing
}
}
Coincidence of two segment of lines can be only segment of line.
He will be describe how pair if variables in array currentTimes
and correspond pair of variables in array targetTimes.
Segment of line can get:
currentLine.getSegment(intersection.currentTimes[0], intersection.currentTimes[1]);
or
targetLine.getSegment(intersection.targetTimes[0], intersection.targetTimes[1]);
Result of this two calculation will be two equivalent segments of line.
Coincidence segment of line and curve of Bezier can be only, if curve of Bezier to give rise
(administrator points lie at one line).
public var isCoincidence:Boolean = false
Property, that show type of crossing.
public static function isIntersectionPossible(current:Rectangle, target:Rectangle):BooleanParameters
| current:Rectangle |
| |
| target:Rectangle |
Returns
public const currentTimes:Array
Array, having time-interators of points of crossing.
time-interators given for object, method whose was call.
public const targetTimes:Array
Array, having time-interators of points of crossing.
time-interators given for object, whose was dan
in role argument with calling method for getting crossings.