Class C2D

  • Direct Known Subclasses:
    C2DM, C3D

    public class C2D
    extends Position
    A position in a cartesian coordinate reference system.
    Author:
    Karel Maesen, Geovise BVBA creation-date: 2/19/14
    • Constructor Detail

      • C2D

        public C2D()
        Constructs an empty instance
      • C2D

        public C2D​(double x,
                   double y)
        Constructs an instance with the specified x (EASTING or WESTING) or y (NORTHING or SOUTHING) coordinates CoordinateReferenceSystem, the

        Parameters:
        x - coordinate for axis in EAST or WEST direction
        y - coordinate for axis in NORTH or SOUTH direction
      • C2D

        protected C2D​(double... coords)
    • Method Detail

      • getX

        public double getX()
        Returns the coordinate for EAST (WEST) axis direction
        Returns:
        the coordinate for EAST (WEST) axis direction
      • getY

        public double getY()
        Returns the coordinate for NORTH (SOUTH) axis direction
        Returns:
        the coordinate for NORTH (SOUTH) axis direction