P
- Point implementation typepublic abstract class AbstractHyperplane<P extends Point<P>> extends Object implements Hyperplane<P>
Modifier | Constructor and Description |
---|---|
protected |
AbstractHyperplane(Precision.DoubleEquivalence precision)
Construct an instance using the given precision context.
|
Modifier and Type | Method and Description |
---|---|
HyperplaneLocation |
classify(P point)
Classify a point with respect to this hyperplane.
|
boolean |
contains(P point)
Return true if the given point lies on the hyperplane.
|
Precision.DoubleEquivalence |
getPrecision()
Get the precision object used to perform floating point
comparisons for this instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
offset, project, reverse, similarOrientation, span, transform
protected AbstractHyperplane(Precision.DoubleEquivalence precision)
precision
- object used to perform floating point comparisonspublic HyperplaneLocation classify(P point)
classify
in interface Hyperplane<P extends Point<P>>
point
- the point to classifypublic boolean contains(P point)
contains
in interface Hyperplane<P extends Point<P>>
point
- the point to testpublic Precision.DoubleEquivalence getPrecision()
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.