Class AbstractLinecastPoint<P extends EuclideanVector<P>,U extends P,L extends Embedding<P,Vector1D>>
java.lang.Object
org.apache.commons.geometry.euclidean.AbstractLinecastPoint<P,U,L>
- Type Parameters:
P
- Euclidean point/vector implementation typeU
- Unit-length Euclidean vector implementation typeL
- Line implementation type
- Direct Known Subclasses:
LinecastPoint2D
,LinecastPoint3D
public abstract class AbstractLinecastPoint<P extends EuclideanVector<P>,U extends P,L extends Embedding<P,Vector1D>>
extends Object
Base class for intersections discovered during linecast operations. This class contains
the intersection point and the normal of the target boundary at the point of intersection
along with the intersecting line and abscissa.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractLinecastPoint
(P point, U normal, L line) Construct a new instance from its components. -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
Get the abscissa (1D position) of the intersection point along the linecast line.getLine()
Get the intersecting line.Get the normal of the target boundary at the intersection point.getPoint()
Get the line intersection point.int
hashCode()
toString()
-
Field Details
-
point
Line intersection point. -
normal
Normal of the target boundary at the intersection point. -
line
The intersecting line. -
abscissa
private final double abscissaAbscissa of the intersection point along the intersecting line.
-
-
Constructor Details
-
AbstractLinecastPoint
Construct a new instance from its components.- Parameters:
point
- intersection pointnormal
- surface normalline
- line that the intersection point belongs to
-
-
Method Details
-
getPoint
Get the line intersection point.- Returns:
- the line intersection point
-
getNormal
Get the normal of the target boundary at the intersection point.- Returns:
- the normal of the target boundary at the intersection point
-
getLine
Get the intersecting line.- Returns:
- the intersecting line
-
getAbscissa
public double getAbscissa()Get the abscissa (1D position) of the intersection point along the linecast line.- Returns:
- the abscissa of the intersection point.
-
hashCode
public int hashCode() -
equals
-
toString
-