Class ECEFCoordinate
java.lang.Object
org.episteme.natural.earth.coordinates.ECEFCoordinate
- All Implemented Interfaces:
Serializable, GeometricObject<EarthCoordinate>, Positioned<EarthCoordinate>, EarthCoordinate
Earth-Centered, Earth-Fixed (ECEF) Cartesian coordinate system.
This 3D coordinate system (X, Y, Z) has its origin at the center of the Earth.
X-axis points towards the intersection of the Prime Meridian and the Equator.
Y-axis points towards 90°E in the equatorial plane.
Z-axis points towards the North Pole.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionECEFCoordinate(Real x, Real y, Real z) ECEFCoordinate(Real x, Real y, Real z, ReferenceEllipsoid ellipsoid) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the dimension of the ambient space containing this object.Returns a human-readable description of this geometric object.intReturns the intrinsic dimension of this geometric object.distanceTo(ECEFCoordinate other) Calculates distance to another ECEF coordinate.Returns the coordinate system name (e.g., "WGS84", "UTM", "MGRS").Returns the reference ellipsoid used by this coordinate.getX()getXReal()getY()getYReal()getZ()getZReal()toECEF()Converts this coordinate to ECEF Cartesian form.Converts ECEF to Geodetic coordinates using Heikkinen's closed-form algorithm.Converts this ECEF coordinate to a standard 3D point.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface EarthCoordinate
distanceTo, getPosition
-
Constructor Details
-
ECEFCoordinate
-
ECEFCoordinate
-
-
Method Details
-
getX
-
getY
-
getZ
-
getXReal
-
getYReal
-
getZReal
-
getEllipsoid
Description copied from interface:EarthCoordinateReturns the reference ellipsoid used by this coordinate.- Specified by:
getEllipsoidin interfaceEarthCoordinate- Returns:
- the ellipsoid model
-
getCoordinateSystem
Description copied from interface:EarthCoordinateReturns the coordinate system name (e.g., "WGS84", "UTM", "MGRS").- Specified by:
getCoordinateSystemin interfaceEarthCoordinate- Returns:
- the coordinate system identifier
-
toECEF
Description copied from interface:EarthCoordinateConverts this coordinate to ECEF Cartesian form.- Specified by:
toECEFin interfaceEarthCoordinate- Returns:
- the ECEF representation
-
distanceTo
Calculates distance to another ECEF coordinate. -
toGeodetic
Converts ECEF to Geodetic coordinates using Heikkinen's closed-form algorithm. Higher precision than iterative methods.- Specified by:
toGeodeticin interfaceEarthCoordinate- Returns:
- the geodetic representation
-
toPoint3D
Converts this ECEF coordinate to a standard 3D point.- Returns:
- the Point3D representation
-
dimension
public int dimension()Description copied from interface:GeometricObjectReturns the intrinsic dimension of this geometric object.Examples:
- Point: 0
- Line/Segment: 1
- Plane/Surface: 2
- Volume: 3
- Specified by:
dimensionin interfaceEarthCoordinate- Specified by:
dimensionin interfaceGeometricObject<EarthCoordinate>- Returns:
- the dimension
-
ambientDimension
public int ambientDimension()Description copied from interface:GeometricObjectReturns the dimension of the ambient space containing this object.For example, a 2D plane in 3D space has dimension=2 but ambientDimension=3.
- Specified by:
ambientDimensionin interfaceEarthCoordinate- Specified by:
ambientDimensionin interfaceGeometricObject<EarthCoordinate>- Returns:
- the ambient space dimension
-
description
Description copied from interface:GeometricObjectReturns a human-readable description of this geometric object.- Specified by:
descriptionin interfaceEarthCoordinate- Specified by:
descriptionin interfaceGeometricObject<EarthCoordinate>- Returns:
- description string
-
toString
-