public class RectangleLineIntersector extends Object
Rectangles contain a large amount of inherent symmetry (or to put it another way, although they contain four coordinates they only actually contain 4 ordinates worth of information). The algorithm used takes advantage of the symmetry of the geometric situation to optimize performance by minimizing the number of line intersection tests.
| Constructor and Description |
|---|
RectangleLineIntersector(BoundingBox rectEnv)
Creates a new intersector for the given query rectangle,
specified as an
BoundingBoxDoubleGf. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
intersects(Point p0,
Point p1)
Tests whether the query rectangle intersects a
given line segment.
|
public RectangleLineIntersector(BoundingBox rectEnv)
BoundingBoxDoubleGf.rectEnv - the query rectangle, specified as an BoundingBoxDoubleGfCopyright © 2015 Revolution Systems Inc.. All rights reserved.