Package llnl.gnem.core.geom
Class CartesianCoordinate
java.lang.Object
llnl.gnem.core.geom.CartesianCoordinate
- All Implemented Interfaces:
Coordinate<CartesianCoordinate>
- Direct Known Subclasses:
ECEFCoordinate
,NEDCoordinate
- Author:
- addair1
-
Constructor Summary
ConstructorDescriptionCartesianCoordinate
(double x, double y) CartesianCoordinate
(double x, double y, double z) -
Method Summary
Modifier and TypeMethodDescriptionboolean
double[]
getArray()
Returns the coordinate as an arraydouble
getDistance
(CartesianCoordinate other) double
org.apache.commons.math3.geometry.euclidean.threed.Vector3D
getPoint()
double
getX()
double
getY()
double
getZ()
int
hashCode()
protected void
setPoint
(org.apache.commons.math3.geometry.euclidean.threed.Vector3D point) Limited visibility setter specifically added for the ECEFCoordinate class which must first perform a conversion before setting the point membertoString()
-
Constructor Details
-
CartesianCoordinate
public CartesianCoordinate(double x, double y) -
CartesianCoordinate
public CartesianCoordinate(double x, double y, double z)
-
-
Method Details
-
setPoint
protected void setPoint(org.apache.commons.math3.geometry.euclidean.threed.Vector3D point) Limited visibility setter specifically added for the ECEFCoordinate class which must first perform a conversion before setting the point member- Parameters:
point
-
-
getDistance
- Specified by:
getDistance
in interfaceCoordinate<CartesianCoordinate>
-
getElevation
public double getElevation()- Specified by:
getElevation
in interfaceCoordinate<CartesianCoordinate>
-
getArray
public double[] getArray()Returns the coordinate as an array- Returns:
- a double array of [x,y,z]
-
toString
-
getPoint
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getPoint() -
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
equals
-
hashCode
public int hashCode()
-