Ninja Library - Collision Function
njDistanceL2L
Returns the distance between two lines
FORMAT
Float njDisatnceL2L( *l1, *l2, *p1, *p2 )
NJS_LINE
*l1
NJS_LINE
*l2
NJS_POINT3
*p1
NJS_POINT3
*p2
PARAMETER
*l1
Line data 1
*l2
Line data 2
*p1
Coordinates of closest point on line 1
*p2
Coordinates of closest point on line 2
RETURN
Minimum distance between the two lines
DESCRIPTION
Returns the minimum distance between two lines. When parameters p1 and p2 are not NULL, the coordinates of the two closest points on the two lines are determined and stored in p1 (for the point on l1) and p2 (for the point on l2).
njDistanceL2L
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999