public class LinecastPoint3D extends AbstractLinecastPoint<Vector3D,Vector3D.Unit,Line3D>
Linecastable3D
Modifier and Type | Field and Description |
---|---|
static Comparator<LinecastPoint3D> |
ABSCISSA_ORDER
Comparator that sorts intersection instances by increasing abscissa order.
|
Constructor and Description |
---|
LinecastPoint3D(Vector3D point,
Vector3D normal,
Line3D line)
Construct a new instance from its components.
|
Modifier and Type | Method and Description |
---|---|
boolean |
eq(LinecastPoint3D other,
Precision.DoubleEquivalence precision)
Return true if this instance should be considered equivalent to the argument, using the
given precision context for comparison.
|
static void |
sortAndFilter(List<LinecastPoint3D> pts)
Sort the given list of linecast points by increasing abscissa value and filter to remove
duplicate entries (as determined by the
eq(LinecastPoint3D, Precision.DoubleEquivalence) method). |
equals, getAbscissa, getLine, getNormal, getPoint, hashCode, toString
public static final Comparator<LinecastPoint3D> ABSCISSA_ORDER
Vector3D.COORDINATE_ASCENDING_ORDER
with the
intersection normals.public LinecastPoint3D(Vector3D point, Vector3D normal, Line3D line)
point
- intersection pointnormal
- normal of the target boundary at the intersection pointline
- intersecting linepublic boolean eq(LinecastPoint3D other, Precision.DoubleEquivalence precision)
other
- other point to compare withprecision
- context to use for the comparisonpublic static void sortAndFilter(List<LinecastPoint3D> pts)
eq(LinecastPoint3D, Precision.DoubleEquivalence)
method).
The argument is modified.pts
- list of points to sort and filterCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.