Class CartesianCoordinate

java.lang.Object
llnl.gnem.core.geom.CartesianCoordinate
All Implemented Interfaces:
Coordinate<CartesianCoordinate>
Direct Known Subclasses:
ECEFCoordinate, NEDCoordinate

public class CartesianCoordinate extends Object implements Coordinate<CartesianCoordinate>
Author:
addair1
  • 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

      public double getDistance(CartesianCoordinate other)
      Specified by:
      getDistance in interface Coordinate<CartesianCoordinate>
    • getElevation

      public double getElevation()
      Specified by:
      getElevation in interface Coordinate<CartesianCoordinate>
    • getArray

      public double[] getArray()
      Returns the coordinate as an array
      Returns:
      a double array of [x,y,z]
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getPoint

      public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getPoint()
    • getX

      public double getX()
    • getY

      public double getY()
    • getZ

      public double getZ()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object