Space, Point, Encloser
| Modifier and Type | Field and Description |
|---|---|
| private final P | center
Center of the ball. |
| private final double | radius
Radius of the ball. |
| private static final long | serialVersionUID
Serializable UID. |
| private final P[] | support
Support points used to define the ball. |
| Access | Constructor and Description |
|---|---|
| public | EnclosingBall(final P
center of the ball center, final double radius of the ball radius, final P... support points used to define the ball support)Simple constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the point is within the ball or at boundarypoint to test point)Check if a point is within the ball or at boundary. |
| public boolean | Returns: true if the point is within the ball enlarged by the margin or at boundarypoint to test point, final double margin to consider margin)Check if a point is within an enlarged ball or at boundary. |
| public P | |
| public double | Returns: radius of the ball (can be negative if the ball is empty)Get the radius of the ball. |
| public P[] | Returns: support points used to define the ballGet the support points used to define the ball. |
| public int | Returns: number of support points used to define the ballGet the number of support points used to define the ball. |
| center | back to summary |
|---|---|
| private final P center Center of the ball. | |
| radius | back to summary |
|---|---|
| private final double radius Radius of the ball. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serializable UID. | |
| support | back to summary |
|---|---|
| private final P[] support Support points used to define the ball. | |
| EnclosingBall | back to summary |
|---|---|
| public EnclosingBall(final P center, final double radius, final P... support) Simple constructor.
| |
| contains | back to summary |
|---|---|
| public boolean contains(final P point) Check if a point is within the ball or at boundary.
| |
| contains | back to summary |
|---|---|
| public boolean contains(final P point, final double margin) Check if a point is within an enlarged ball or at boundary.
| |
| getCenter | back to summary |
|---|---|
| public P getCenter() Get the center of the ball.
| |
| getRadius | back to summary |
|---|---|
| public double getRadius() Get the radius of the ball.
| |
| getSupport | back to summary |
|---|---|
| public P[] getSupport() Get the support points used to define the ball.
| |
| getSupportSize | back to summary |
|---|---|
| public int getSupportSize() Get the number of support points used to define the ball.
| |