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 java.lang.ObjectBase 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractLinecastPoint(P point, U normal, L line)Construct a new instance from its components.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)doublegetAbscissa()Get the abscissa (1D position) of the intersection point along the linecast line.LgetLine()Get the intersecting line.UgetNormal()Get the normal of the target boundary at the intersection point.PgetPoint()Get the line intersection point.inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
point
private final P extends EuclideanVector<P> point
Line intersection point.
-
abscissa
private final double abscissa
Abscissa of the intersection point along the intersecting line.
-
-
Method Detail
-
getPoint
public P getPoint()
Get the line intersection point.- Returns:
- the line intersection point
-
getNormal
public U getNormal()
Get the normal of the target boundary at the intersection point.- Returns:
- the normal of the target boundary at the intersection point
-
getLine
public L 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()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-