Class SubOrientedPoint
- java.lang.Object
-
- org.hipparchus.geometry.partitioning.AbstractSubHyperplane<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint,Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint>
-
- org.hipparchus.geometry.euclidean.oned.SubOrientedPoint
-
- All Implemented Interfaces:
SubHyperplane<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint>
public class SubOrientedPoint extends AbstractSubHyperplane<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint,Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint>
This class represents sub-hyperplane forOrientedPoint.An hyperplane in 1D is a simple point, its orientation being a boolean.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hipparchus.geometry.partitioning.SubHyperplane
SubHyperplane.SplitSubHyperplane<U extends Space,R extends Point<U,R>,F extends Hyperplane<U,R,F,J>,J extends SubHyperplane<U,R,F,J>>
-
-
Constructor Summary
Constructors Constructor Description SubOrientedPoint(OrientedPoint hyperplane, Region<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint> remainingRegion)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SubOrientedPointbuildNew(OrientedPoint hyperplane, Region<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint> remainingRegion)Build a sub-hyperplane from an hyperplane and a region.Vector1DgetInteriorPoint()Get an interior point.doublegetSize()Get the size of the instance.booleanisEmpty()Check if the instance is empty.SubHyperplane.SplitSubHyperplane<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint>split(OrientedPoint hyperplane)Split the instance in two parts by an hyperplane.-
Methods inherited from class org.hipparchus.geometry.partitioning.AbstractSubHyperplane
applyTransform, copySelf, getHyperplane, getRemainingRegion, reunite
-
-
-
-
Constructor Detail
-
SubOrientedPoint
public SubOrientedPoint(OrientedPoint hyperplane, Region<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint> remainingRegion)
Simple constructor.- Parameters:
hyperplane- underlying hyperplaneremainingRegion- remaining region of the hyperplane
-
-
Method Detail
-
getSize
public double getSize()
Get the size of the instance.- Specified by:
getSizein interfaceSubHyperplane<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint>- Overrides:
getSizein classAbstractSubHyperplane<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint,Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint>- Returns:
- the size of the instance (this is a length in 1D, an area in 2D, a volume in 3D ...)
-
isEmpty
public boolean isEmpty()
Check if the instance is empty.- Specified by:
isEmptyin interfaceSubHyperplane<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint>- Overrides:
isEmptyin classAbstractSubHyperplane<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint,Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint>- Returns:
- true if the instance is empty
-
buildNew
protected SubOrientedPoint buildNew(OrientedPoint hyperplane, Region<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint> remainingRegion)
Build a sub-hyperplane from an hyperplane and a region.- Specified by:
buildNewin classAbstractSubHyperplane<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint,Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint>- Parameters:
hyperplane- underlying hyperplaneremainingRegion- remaining region of the hyperplane- Returns:
- a new sub-hyperplane
-
getInteriorPoint
public Vector1D getInteriorPoint()
Get an interior point.- Returns:
- an arbitrary interior point, or null if sub-hyperplane is empty
-
split
public SubHyperplane.SplitSubHyperplane<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint> split(OrientedPoint hyperplane)
Split the instance in two parts by an hyperplane.- Specified by:
splitin interfaceSubHyperplane<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint>- Specified by:
splitin classAbstractSubHyperplane<Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint,Euclidean1D,Vector1D,OrientedPoint,SubOrientedPoint>- Parameters:
hyperplane- splitting hyperplane- Returns:
- an object containing both the part of the instance on the plus side of the hyperplane and the part of the instance on the minus side of the hyperplane
-
-