public class TLcdLonLatZonalPoint extends TLcdLonLatPoint implementsILcd2DEditableZonalPoint
ILcd2DEditableZonalPoint
in the geodetic
space.
All longitude/latitude coordinates are expressed in degrees.
This class is thread-safe for concurrent read-only access of its contents. For read-write access, external locking must be used. Such locking is typically done at the model level.
Constructor and Description |
---|
TLcdLonLatZonalPoint(double aLon,
double aLat,
int aZone) |
TLcdLonLatZonalPoint(ILcd2DEditablePoint a2DEditablePoint,
int aZone) |
TLcdLonLatZonalPoint(ILcd2DEditableZonalPoint a2DEditableZonalPoint) |
Modifier and Type | Method and Description |
---|---|
ILcd2DEditablePoint |
cloneAs2DEditablePoint()
Returns a copy of this
ILcdPoint that is also an ILcd2DEditablePoint . |
boolean |
equals(Object aObject)
Returns whether the given object has the same class, the same coordinates,
and the same zone.
|
int |
getZone()
Returns the zone of this
ILcdZonal2DEditablePoint . |
int |
hashCode()
The hash code of this shape is the hash code of its class, in order to
be consistent with the
ALcdShape.equals(Object) method. |
void |
setZone(int aZone)
Sets the zone of this
ILcdZonal2DEditablePoint . |
String |
toString() |
cloneAs2DEditableBounds, cloneAs3DEditableBounds, cloneAs3DEditablePoint, contains2D, contains2D, getCosX, getCosY, getLat, getLon, getSinX, getSinY, getTanX, getTanY, getX, getY, interacts2D, move2D
getZ, move2D, translate2D
contains2D, contains3D, contains3D, contains3D, getBounds, getDepth, getFocusPoint, getHeight, getLocation, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getPoint, getPointCount, getWidth, interacts2D, interacts3D, interacts3D, isDefined
clone, contains2D, contains3D, fromDomainObject
finalize, getClass, notify, notifyAll, wait, wait, wait
cloneAs3DEditablePoint, getCosX, getCosY, getSinX, getSinY, getTanX, getTanY, getX, getY, getZ
move2D, move2D, translate2D
contains2D, contains2D, contains3D, contains3D, getFocusPoint
getBounds
clone
getPointSFCT, getX, getY, getZ
getCenter
public TLcdLonLatZonalPoint(double aLon, double aLat, int aZone)
public TLcdLonLatZonalPoint(ILcd2DEditablePoint a2DEditablePoint, int aZone)
public TLcdLonLatZonalPoint(ILcd2DEditableZonalPoint a2DEditableZonalPoint)
public final int getZone()
ILcdZonalPoint
ILcdZonal2DEditablePoint
.getZone
in interface ILcdZonalPoint
ILcdZonal2DEditablePoint
.public void setZone(int aZone)
ILcd2DEditableZonalPoint
ILcdZonal2DEditablePoint
.setZone
in interface ILcd2DEditableZonalPoint
aZone
- the new zone of this point.public ILcd2DEditablePoint cloneAs2DEditablePoint()
ILcdPoint
ILcdPoint
that is also an ILcd2DEditablePoint
.
This makes sure that the first two dimensions of the copy are writable,cloneAs2DEditablePoint
in interface ILcdPoint
cloneAs2DEditablePoint
in class TLcdLonLatPoint
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
public boolean equals(Object aObject)
equals
in interface ILcdPoint
equals
in class TLcdLonLatPoint
aObject
- the object to check for equalitypublic int hashCode()
ALcdShape
ALcdShape.equals(Object)
method.
Extensions should refine this implementation, based on their properties.public String toString()
toString
in class ALcd2DEditablePoint