Package org.geolatte.geom
Class C2D
- java.lang.Object
-
- org.geolatte.geom.Position
-
- org.geolatte.geom.C2D
-
-
Constructor Summary
Constructors Modifier Constructor Description C2D()Constructs an empty instanceprotectedC2D(double... coords)C2D(double x, double y)Constructs an instance with the specified x (EASTING or WESTING) or y (NORTHING or SOUTHING) coordinatesCoordinateReferenceSystem, the
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCoordinateDimension()doublegetX()Returns the coordinate for EAST (WEST) axis directiondoublegetY()Returns the coordinate for NORTH (SOUTH) axis direction-
Methods inherited from class org.geolatte.geom.Position
equals, getCoordinate, getCoordinate, getCoordinate, hashCode, isEmpty, toArray, toString
-
-
-
-
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) coordinatesCoordinateReferenceSystem, the- Parameters:
x- coordinate for axis in EAST or WEST directiony- coordinate for axis in NORTH or SOUTH direction
-
C2D
protected C2D(double... coords)
-
-
Method Detail
-
getCoordinateDimension
public int getCoordinateDimension()
- Specified by:
getCoordinateDimensionin classPosition
-
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
-
-