Class AbstractPlaneSubset

java.lang.Object
org.apache.commons.geometry.euclidean.threed.AbstractPlaneSubset
All Implemented Interfaces:
HyperplaneSubset<Vector3D>, Splittable<Vector3D,HyperplaneSubset<Vector3D>>, Sized, PlaneSubset
Direct Known Subclasses:
AbstractConvexPolygon3D, AbstractEmbeddedRegionPlaneSubset

abstract class AbstractPlaneSubset extends Object implements PlaneSubset
Abstract base class for PlaneSubset implementations.
  • Constructor Details

    • AbstractPlaneSubset

      AbstractPlaneSubset()
  • Method Details

    • getHyperplane

      public Plane getHyperplane()
      Get the hyperplane containing this instance.
      Specified by:
      getHyperplane in interface HyperplaneSubset<Vector3D>
      Specified by:
      getHyperplane in interface PlaneSubset
      Returns:
      the hyperplane containing this instance
    • intersection

      public Vector3D intersection(Line3D line)
      Get the unique intersection of this plane subset with the given line. Null is returned if no unique intersection point exists (ie, the line and plane are parallel or coincident) or the line does not intersect the plane subset.
      Specified by:
      intersection in interface PlaneSubset
      Parameters:
      line - line to intersect with this plane subset
      Returns:
      the unique intersection point between the line and this plane subset or null if no such point exists.
      See Also:
    • intersection

      public Vector3D intersection(LineConvexSubset3D lineSubset)
      Get the unique intersection of this plane subset with the given line subset. Null is returned if the underlying line and plane do not have a unique intersection point (ie, they are parallel or coincident) or the intersection point is unique but is not contained in both the line subset and plane subset.
      Specified by:
      intersection in interface PlaneSubset
      Parameters:
      lineSubset - line subset to intersect with
      Returns:
      the unique intersection point between this plane subset and the argument or null if no such point exists.
      See Also: