public interface ILcdPoint extends ILcdShape
ILcdPoint
is an ILcdShape
representing a 3D point.
It has three coordinates x, y, and z, which can be read.
In addition, this interface provides a series of methods
to retrieve trigonometric values of the coordinates.
Note that this interface only provides read methods, and no write
methods. This way, efficient read-only implementations can be made,
and methods can have read-only parameters and return values, reducing
the risk of erroneous side-effects. Writable copies can be constructed
using cloneAs2DEditablePoint()
and cloneAs3DEditablePoint
.
ILcd2DEditablePoint
,
ILcd3DEditablePoint
Modifier and Type | Method and Description |
---|---|
ILcd2DEditablePoint |
cloneAs2DEditablePoint()
Returns a copy of this
ILcdPoint that is also an ILcd2DEditablePoint . |
ILcd3DEditablePoint |
cloneAs3DEditablePoint()
Returns a copy of this
ILcdPoint that is also an ILcd3DEditablePoint . |
boolean |
equals(Object aObject)
Checks whether this
ILcdPoint is equal to the given Object . |
double |
getCosX()
Returns cos(
getX() * DEG2RAD ). |
double |
getCosY()
Returns cos(
getY() * DEG2RAD ). |
double |
getSinX()
Returns sin(
getX() * DEG2RAD ). |
double |
getSinY()
Returns sin(
getY() * DEG2RAD ). |
double |
getTanX()
Returns tan(
getX() * DEG2RAD ). |
double |
getTanY()
Returns tan(
getY() * DEG2RAD ). |
double |
getX()
Returns the x coordinate of this
ILcdPoint . |
double |
getY()
Returns the y coordinate of this
ILcdPoint . |
double |
getZ()
Returns the z coordinate of this
ILcdPoint . |
contains2D, contains2D, contains3D, contains3D, getFocusPoint
getBounds
clone
double getX()
ILcdPoint
.ILcdPoint
.double getY()
ILcdPoint
.ILcdPoint
.double getZ()
ILcdPoint
.ILcdPoint
.double getCosX()
getX()
* DEG2RAD ).getX()
* DEG2RAD ).double getCosY()
getY()
* DEG2RAD ).getY()
* DEG2RAD ).double getSinX()
getX()
* DEG2RAD ).getX()
* DEG2RAD ).double getSinY()
getY()
* DEG2RAD ).getY()
* DEG2RAD ).double getTanX()
getX()
* DEG2RAD ).getX()
* DEG2RAD ).double getTanY()
getY()
* DEG2RAD ).getY()
* DEG2RAD ).boolean equals(Object aObject)
ILcdPoint
is equal to the given Object
.equals
in class Object
aObject
- the Object
to compare to.ILcd2DEditablePoint cloneAs2DEditablePoint()
ILcdPoint
that is also an ILcd2DEditablePoint
.
This makes sure that the first two dimensions of the copy are writable,ILcdPoint
that is also an ILcd2DEditablePoint
.
This makes sure that the first two dimensions of the copy are writable,
even if the original ILcdPoint
object may be read-only.ILcd2DEditablePoint
ILcd3DEditablePoint cloneAs3DEditablePoint()
ILcdPoint
that is also an ILcd3DEditablePoint
.
This makes sure that all three dimensions of the copy are writable,ILcdPoint
that is also an ILcd3DEditablePoint
.
This makes sure that all three dimensions of the copy are writable,
even if the original ILcdPoint
object may be read-only.ILcd3DEditablePoint