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
ConstructorsConstructorDescriptionCartesianCoordinate(double x, double y) CartesianCoordinate(double x, double y, double z) -
Method Summary
Modifier and TypeMethodDescriptionbooleandouble[]getArray()Returns the coordinate as an arraydoublegetDistance(CartesianCoordinate other) doubleorg.apache.commons.math3.geometry.euclidean.threed.Vector3DgetPoint()doublegetX()doublegetY()doublegetZ()inthashCode()protected voidsetPoint(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:
getDistancein interfaceCoordinate<CartesianCoordinate>
-
getElevation
public double getElevation()- Specified by:
getElevationin 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()
-