Class HyperplaneSubsets
java.lang.Object
org.apache.commons.geometry.core.internal.HyperplaneSubsets
Utility methods for
HyperplaneSubset
implementations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <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.
-
Constructor Details
-
HyperplaneSubsets
private HyperplaneSubsets()Utility class; no instantiation.
-
-
Method Details
-
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
ptin the embedded region
-