Package com.luciad.shape
Interface ILcdPoint
- All Superinterfaces:
Cloneable
,ILcdBounded
,ILcdCloneable
,ILcdShape
,Serializable
- All Known Subinterfaces:
ILcd2DEditablePoint
,ILcd2DEditableZonalPoint
,ILcd3DEditablePoint
,ILcdAerodrome
,ILcdAirspaceSegment
,ILcdArrestingGear
,ILcdDME
,ILcdEditableAerodrome
,ILcdEditableAirspaceSegment
,ILcdEditableArrestingGear
,ILcdEditableDME
,ILcdEditableGeoPathLeg
,ILcdEditableGlidePath
,ILcdEditableLocalizer
,ILcdEditableLocationBasedService
,ILcdEditableMarker
,ILcdEditableMilitaryTrainingRoutePoint
,ILcdEditableNavaid
,ILcdEditableNDB
,ILcdEditableObstacle
,ILcdEditableParachuteJumpAreaSegment
,ILcdEditableRefuelingTrackPoint
,ILcdEditableRoutePoint
,ILcdEditableRunwayClinePoint
,ILcdEditableTACAN
,ILcdEditableVFRRoutePoint
,ILcdEditableVOR
,ILcdEditableWayPoint
,ILcdGDFPointFeature
,ILcdGeoPathLeg
,ILcdGlidePath
,ILcdLocalizer
,ILcdLocationBasedService
,ILcdMarker
,ILcdMilitaryTrainingRoutePoint
,ILcdNavaid
,ILcdNDB
,ILcdObstacle
,ILcdParachuteJumpAreaSegment
,ILcdRefuelingTrackPoint
,ILcdRoutePoint
,ILcdRunwayClinePoint
,ILcdTACAN
,ILcdVFRRoutePoint
,ILcdVOR
,ILcdWayPoint
,ILcdZonalPoint
- All Known Implementing Classes:
ALcd2DEditablePoint
,ALcd3DEditablePoint
,ALcdPoint
,TLcd2DEditableFeaturedPoint
,TLcdAerodrome
,TLcdAirspaceSegment
,TLcdAISPoint
,TLcdAIXM51ElevatedPoint
,TLcdAIXM51Point
,TLcdArrestingGear
,TLcdASDITrack
,TLcdASTERIXPlot
,TLcdASTERIXTrack
,TLcdDME
,TLcdDWGPoint
,TLcdFeaturedAerodrome
,TLcdFeaturedArrestingGear
,TLcdFeaturedDME
,TLcdFeaturedGlidePath
,TLcdFeaturedLocalizer
,TLcdFeaturedLocationBasedService
,TLcdFeaturedMarker
,TLcdFeaturedMilitaryTrainingRoutePoint
,TLcdFeaturedNDB
,TLcdFeaturedObstacle
,TLcdFeaturedRefuelingTrackPoint
,TLcdFeaturedRunwayClinePoint
,TLcdFeaturedTACAN
,TLcdFeaturedVFRRoutePoint
,TLcdFeaturedVOR
,TLcdFeaturedWayPoint
,TLcdGeoPathLeg
,TLcdGlidePath
,TLcdGML2Point
,TLcdGML31DirectPosition
,TLcdGML31Point
,TLcdGML31Vector
,TLcdGML32DirectPosition
,TLcdGML32Point
,TLcdGML32Vector
,TLcdKML22Location
,TLcdKML22Point
,TLcdLocalizer
,TLcdLocationBasedService
,TLcdLonLatFloatPoint
,TLcdLonLatHeightMPoint
,TLcdLonLatHeightPoint
,TLcdLonLatMPoint
,TLcdLonLatPoint
,TLcdLonLatZonalPoint
,TLcdMarker
,TLcdMeasureXYPoint
,TLcdMeasureXYZPoint
,TLcdMIFPoint
,TLcdMilitaryTrainingRoutePoint
,TLcdNDB
,TLcdNVG15Point
,TLcdNVG15Text
,TLcdNVG20Point
,TLcdNVG20Text
,TLcdObstacle
,TLcdParachuteJumpAreaSegment
,TLcdRefuelingTrackPoint
,TLcdRunwayClinePoint
,TLcdS57Node
,TLcdS57Point
,TLcdS57SoundingPoint
,TLcdSHPPointM
,TLcdSHPPointZ
,TLcdSubPointlistAirspaceSegment
,TLcdTACAN
,TLcdVFRRoutePoint
,TLcdVOR
,TLcdWayPoint
,TLcdXYFloatPoint
,TLcdXYMPoint
,TLcdXYPoint
,TLcdXYZFloatPoint
,TLcdXYZMPoint
,TLcdXYZonalPoint
,TLcdXYZPoint
An
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
.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of thisILcdPoint
that is also anILcd2DEditablePoint
.Returns a copy of thisILcdPoint
that is also anILcd3DEditablePoint
.boolean
Checks whether thisILcdPoint
is equal to the givenObject
.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 thisILcdPoint
.double
getY()
Returns the y coordinate of thisILcdPoint
.double
getZ()
Returns the z coordinate of thisILcdPoint
.Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
Methods inherited from interface com.luciad.util.ILcdCloneable
clone
Methods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Method Details
-
getX
double getX()Returns the x coordinate of thisILcdPoint
.- Returns:
- the x coordinate of this
ILcdPoint
.
-
getY
double getY()Returns the y coordinate of thisILcdPoint
.- Returns:
- the y coordinate of this
ILcdPoint
.
-
getZ
double getZ()Returns the z coordinate of thisILcdPoint
.- Returns:
- the z coordinate of this
ILcdPoint
.
-
getCosX
double getCosX()Returns cos(getX()
* DEG2RAD ).- Returns:
- cos(
getX()
* DEG2RAD ).
-
getCosY
double getCosY()Returns cos(getY()
* DEG2RAD ).- Returns:
- cos(
getY()
* DEG2RAD ).
-
getSinX
double getSinX()Returns sin(getX()
* DEG2RAD ).- Returns:
- sin(
getX()
* DEG2RAD ).
-
getSinY
double getSinY()Returns sin(getY()
* DEG2RAD ).- Returns:
- sin(
getY()
* DEG2RAD ).
-
getTanX
double getTanX()Returns tan(getX()
* DEG2RAD ).- Returns:
- tan(
getX()
* DEG2RAD ).
-
getTanY
double getTanY()Returns tan(getY()
* DEG2RAD ).- Returns:
- tan(
getY()
* DEG2RAD ).
-
equals
Checks whether thisILcdPoint
is equal to the givenObject
.- Overrides:
equals
in classObject
- Parameters:
aObject
- theObject
to compare to.- Returns:
- false if aObject is an ILcdPoint object with different 3D coordinates or the object is not an ILcdPoint. If the objects do have the same 3D coordinates, the return value is defined by the specific implementations of ILcdPoint and may still be false.
-
cloneAs2DEditablePoint
ILcd2DEditablePoint cloneAs2DEditablePoint()Returns a copy of thisILcdPoint
that is also anILcd2DEditablePoint
. This makes sure that the first two dimensions of the copy are writable,- Returns:
- a copy of this
ILcdPoint
that is also anILcd2DEditablePoint
. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdPoint
object may be read-only. - See Also:
-
cloneAs3DEditablePoint
ILcd3DEditablePoint cloneAs3DEditablePoint()Returns a copy of thisILcdPoint
that is also anILcd3DEditablePoint
. This makes sure that all three dimensions of the copy are writable,- Returns:
- a copy of this
ILcdPoint
that is also anILcd3DEditablePoint
. This makes sure that all three dimensions of the copy are writable, even if the originalILcdPoint
object may be read-only. - See Also:
-