Class AbstractLinecastPoint<P extends EuclideanVector<P>,​U extends P,​L extends Embedding<P,​Vector1D>>

  • Type Parameters:
    P - Euclidean point/vector implementation type
    U - Unit-length Euclidean vector implementation type
    L - 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.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 
      Modifier and Type Field Description
      private double abscissa
      Abscissa of the intersection point along the intersecting line.
      private L line
      The intersecting line.
      private U normal
      Normal of the target boundary at the intersection point.
      private P point
      Line intersection point.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractLinecastPoint​(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
      boolean equals​(java.lang.Object obj)
      double getAbscissa()
      Get the abscissa (1D position) of the intersection point along the linecast line.
      L getLine()
      Get the intersecting line.
      U getNormal()
      Get the normal of the target boundary at the intersection point.
      P getPoint()
      Get the line intersection point.
      int hashCode()
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • normal

        private final U extends P normal
        Normal of the target boundary at the intersection point.
      • abscissa

        private final double abscissa
        Abscissa of the intersection point along the intersecting line.
    • Constructor Detail

      • AbstractLinecastPoint

        protected AbstractLinecastPoint​(P point,
                                        U normal,
                                        L line)
        Construct a new instance from its components.
        Parameters:
        point - intersection point
        normal - surface normal
        line - line that the intersection point belongs to
    • 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:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object