org.apache.commons.math3.geometry.euclidean.threed
Class SubPlane
java.lang.Object
org.apache.commons.math3.geometry.partitioning.AbstractSubHyperplane<Euclidean3D,Euclidean2D>
org.apache.commons.math3.geometry.euclidean.threed.SubPlane
- All Implemented Interfaces:
- SubHyperplane<Euclidean3D>
public class SubPlane
- extends AbstractSubHyperplane<Euclidean3D,Euclidean2D>
This class represents a sub-hyperplane for Plane
.
- Since:
- 3.0
- Version:
- $Id: SubPlane.java 1416643 2012-12-03 19:37:14Z tn $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubPlane
public SubPlane(Hyperplane<Euclidean3D> hyperplane,
Region<Euclidean2D> remainingRegion)
- Simple constructor.
- Parameters:
hyperplane
- underlying hyperplaneremainingRegion
- remaining region of the hyperplane
buildNew
protected AbstractSubHyperplane<Euclidean3D,Euclidean2D> buildNew(Hyperplane<Euclidean3D> hyperplane,
Region<Euclidean2D> remainingRegion)
- Build a sub-hyperplane from an hyperplane and a region.
- Specified by:
buildNew
in class AbstractSubHyperplane<Euclidean3D,Euclidean2D>
- Parameters:
hyperplane
- underlying hyperplaneremainingRegion
- remaining region of the hyperplane
- Returns:
- a new sub-hyperplane
side
public Side side(Hyperplane<Euclidean3D> hyperplane)
- Compute the relative position of the instance with respect
to an hyperplane.
- Specified by:
side
in interface SubHyperplane<Euclidean3D>
- Specified by:
side
in class AbstractSubHyperplane<Euclidean3D,Euclidean2D>
- Parameters:
hyperplane
- hyperplane to check instance against
- Returns:
- one of
Side.PLUS
, Side.MINUS
, Side.BOTH
,
Side.HYPER
split
public SubHyperplane.SplitSubHyperplane<Euclidean3D> split(Hyperplane<Euclidean3D> hyperplane)
- Split the instance in two parts by an hyperplane.
- Specified by:
split
in interface SubHyperplane<Euclidean3D>
- Specified by:
split
in class AbstractSubHyperplane<Euclidean3D,Euclidean2D>
- Parameters:
hyperplane
- splitting hyperplane
- Returns:
- an object containing both the part of the instance
on the plus side of the instance and the part of the
instance on the minus side of the instance
Copyright (c) 2003-2013 Apache Software Foundation