public interface ILcdShape extends ILcdBounded, ILcdCloneable, Serializable
ILcdShape
is a representation of a bounded 3D geometry. Containment tests
determine the geometry of the shape. For convenience, 2D containment tests are
provided for shapes that are essentially two-dimensional. The third dimension
is then ignored.
The topological space of a shape is defined by the actual implementation of this interface. For instance, points, boxes, spheres, etc. may each have different implementations for cartesian, spherical, toroidal, etc. topologies. Operations between shapes will generally only make sense if the shapes live in the same topology.
An ILcdShape
has a 3D focus point, which is typically used as a handle or a
labeling point in graphical user interfaces.
Modifier and Type | Method and Description |
---|---|
boolean |
contains2D(double aX,
double aY)
Checks whether this
ILcdShape contains the given point in
the 2D space. |
boolean |
contains2D(ILcdPoint aPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 2D space. |
boolean |
contains3D(double aX,
double aY,
double aZ)
Checks whether this
ILcdShape contains the given point in
the 3D space. |
boolean |
contains3D(ILcdPoint aPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 3D space. |
ILcdPoint |
getFocusPoint()
Returns the focus point of this
ILcdShape . |
getBounds
clone
ILcdPoint getFocusPoint()
ILcdShape
.ILcdShape
.boolean contains2D(ILcdPoint aPoint)
ILcdShape
contains the given ILcdPoint
in the 2D space.
Only the first two dimensions of the ILcdShape
and the ILcdPoint
are considered.aPoint
- the ILcdPoint
to test.contains2D(double, double)
boolean contains2D(double aX, double aY)
ILcdShape
contains the given point in
the 2D space. Only the first two dimensions of the ILcdShape
are considered.aX
- the x coordinate of the point.aY
- the y coordinate of the point.boolean contains3D(ILcdPoint aPoint)
ILcdShape
contains the given ILcdPoint
in the 3D space.aPoint
- the ILcdPoint
to test.contains3D(double, double, double)
boolean contains3D(double aX, double aY, double aZ)
ILcdShape
contains the given point in
the 3D space.aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.