Class AbstractHyperplane<P extends Point<P>>
java.lang.Object
org.apache.commons.geometry.core.partitioning.AbstractHyperplane<P>
- Type Parameters:
P- Point implementation type
- All Implemented Interfaces:
Hyperplane<P>
- Direct Known Subclasses:
CutAngle, GreatCircle, Line, OrientedPoint, Plane
public abstract class AbstractHyperplane<P extends Point<P>>
extends Object
implements Hyperplane<P>
Base class for hyperplane implementations.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractHyperplane(org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct an instance using the given precision context. -
Method Summary
Modifier and TypeMethodDescriptionClassify a point with respect to this hyperplane.booleanReturn true if the given point lies on the hyperplane.org.apache.commons.numbers.core.Precision.DoubleEquivalenceGet the precision object used to perform floating point comparisons for this instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Hyperplane
offset, project, reverse, similarOrientation, span, transform
-
Constructor Details
-
AbstractHyperplane
Construct an instance using the given precision context.- Parameters:
precision- object used to perform floating point comparisons
-
-
Method Details
-
classify
Classify a point with respect to this hyperplane.- Specified by:
classifyin interfaceHyperplane<P extends Point<P>>- Parameters:
point- the point to classify- Returns:
- the relative location of the point with respect to this instance
-
contains
-
getPrecision
Get the precision object used to perform floating point comparisons for this instance.- Returns:
- the precision object for this instance
-