Class HyperplaneSubsets
- java.lang.Object
-
- org.apache.commons.geometry.core.internal.HyperplaneSubsets
-
public final class HyperplaneSubsets extends java.lang.Object
Utility methods forHyperplaneSubset
implementations.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
HyperplaneSubsets()
Utility class; no instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <P extends Point<P>,S extends Point<S>,H extends EmbeddingHyperplane<P,S>,R extends Region<S>>
RegionLocationclassifyAgainstEmbeddedRegion(P pt, H hyperplane, R embeddedRegion)
Classify a point against a region embedded in a hyperplane.static <P extends Point<P>,S extends Point<S>,H extends EmbeddingHyperplane<P,S>,R extends Region<S>>
PclosestToEmbeddedRegion(P pt, H hyperplane, R embeddedRegion)
Return the closest point to a given point in a region embedded in a hyperplane.
-
-
-
Method Detail
-
classifyAgainstEmbeddedRegion
public static <P extends Point<P>,S extends Point<S>,H extends EmbeddingHyperplane<P,S>,R extends Region<S>> RegionLocation classifyAgainstEmbeddedRegion(P pt, H hyperplane, R embeddedRegion)
Classify a point against a region embedded in a hyperplane.- Type Parameters:
P
- Point implementation classS
- Subspace point implementation classH
- Hyperplane implementation classR
- Region implementation class- Parameters:
pt
- the point to classifyhyperplane
- hyperplane containing the embedded regionembeddedRegion
- embedded region to classify against- Returns:
- the region location of the given point
-
closestToEmbeddedRegion
public static <P extends Point<P>,S extends Point<S>,H extends EmbeddingHyperplane<P,S>,R extends Region<S>> P closestToEmbeddedRegion(P pt, H hyperplane, R embeddedRegion)
Return the closest point to a given point in a region embedded in a hyperplane.- Type Parameters:
P
- Point implementation classS
- Subspace point implementation classH
- Hyperplane implementation classR
- Region implementation class- Parameters:
pt
- point to find the closest point tohyperplane
- hyperplane containing the embedded regionembeddedRegion
- embedded region to find the closest point in- Returns:
- the closest point to
pt
in the embedded region
-
-