An util class with static method which provides useful
functions related to intersection
public static function intersectionBSphere(p_oBSphereA:BSphere, p_oBSphereB:BSphere):Boolean
Provide an intersection test between 2 bounding boxes.
Parameters
Returns
| Boolean — Boolean true is their are intersection, false otherwise
|
public static function intersectionLine2D(p_oPointA:Point, p_oPointB:Point, p_oPointC:Point, p_oPointD:Point):Point
Computation of the intersection point between 2 2D lines AB and CD.
This function returns the intersection point.
Returns null in case the two lines are coincident or parallel
Original implementation : http://local.wasp.uwa.edu.au/~pbourke/geometry/lineline2d/
Parameters
| p_oPointA:Point |
| |
| p_oPointB:Point |
| |
| p_oPointC:Point |
| |
| p_oPointD:Point |
Returns
public static function intersectionLine3D(p_oPointA:Vector, p_oPointB:Vector, p_oPointC:Vector, p_oPointD:Vector):Array
Computes the smallest distance between these 3D lines.
As 3D lines can be not intersecting, we compute two points, first owning to the first 3D line, and the second point owning to the second 3D line.
The 2 points define a segment which length represents hte shortest distance between these 2 lines.
Parameters
Returns
ASDoc: Preliminary documentation for the Sandy 3D Engine, version 3.0.1