Class BoundaryProjection<S extends Space>
java.lang.Object
org.apache.commons.math3.geometry.partitioning.BoundaryProjection<S>
- Type Parameters:
S- Type of the space.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBoundaryProjection(Point<S> original, Point<S> projected, double offset) Constructor from raw elements. -
Method Summary
Modifier and TypeMethodDescriptiondoubleOffset of the point with respect to the boundary it is projected on.Get the original point.Projected point.
-
Field Details
-
original
-
projected
-
offset
private final double offsetOffset of the point with respect to the boundary it is projected on.
-
-
Constructor Details
-
BoundaryProjection
-
-
Method Details
-
getOriginal
-
getProjected
-
getOffset
public double getOffset()Offset of the point with respect to the boundary it is projected on.The offset with respect to the boundary is negative if the
original pointis inside the region, and positive otherwise.If there are no boundary, the value is set to either
Double.POSITIVE_INFINITYif the region is empty (i.e. all points are outside of the region) orDouble.NEGATIVE_INFINITYif the region covers the whole space (i.e. all points are inside of the region).- Returns:
- offset of the point with respect to the boundary it is projected on
-