S
- Type of the space.public class BoundaryProjection<S extends Space>
extends java.lang.Object
This class is a simple placeholder, it does not provide any processing methods.
Instances of this class are guaranteed to be immutable
AbstractRegion.projectToBoundary(Point)
Modifier and Type | Field and Description |
---|---|
private double |
offset
Offset of the point with respect to the boundary it is projected on.
|
private Point<S> |
original
Original point.
|
private Point<S> |
projected
Projected point.
|
Constructor and Description |
---|
BoundaryProjection(Point<S> original,
Point<S> projected,
double offset)
Constructor from raw elements.
|
Modifier and Type | Method and Description |
---|---|
double |
getOffset()
Offset of the point with respect to the boundary it is projected on.
|
Point<S> |
getOriginal()
Get the original point.
|
Point<S> |
getProjected()
Projected point.
|
private final double offset
public Point<S> getProjected()
public double getOffset()
The offset with respect to the boundary is negative if the original point
is inside the region, and positive otherwise.
If there are no boundary, the value is set to either Double.POSITIVE_INFINITY
if the region is empty (i.e. all points are
outside of the region) or Double.NEGATIVE_INFINITY
if the region
covers the whole space (i.e. all points are inside of the region).
Copyright (c) 2003-2016 Apache Software Foundation