Function Cursor.MoveToClosestIntersectionWithLineSegment
Moves to the closest intersection of the line segment (origin + direction*range.x, origin + direction*range.y).
Public
bool MoveToClosestIntersectionWithLineSegment (
origin | A point on the line |
|
direction | The direction of the line. Need not be normalized. |
|
range | The range of the line segment along the line. The segment is (origin + direction*range.x, origin + direction*range.y). May be (-inf, +inf) to consider an infinite line. |
Moves to the closest intersection of the line segment (origin + direction*range.x, origin + direction*range.y).
The closest intersection as measured by the distance along the path is returned.
If no intersection is found, false will be returned and the cursor remains unchanged.
The intersection is calculated in XZ space.