Modifier | Constructor and Description |
---|---|
|
G2D()
Constructs an empty instance
|
protected |
G2D(double... coords)
Constructs an instance from the specified coordinates.
|
|
G2D(double lon,
double lat)
Constructs an instance with the specified longitude and latitude
|
Modifier and Type | Method and Description |
---|---|
int |
getCoordinateDimension() |
double |
getLat()
Returns the latitude of this position
|
double |
getLon()
Returns the longitude of this position
|
equals, getCoordinate, getCoordinate, hashCode, isEmpty, toArray, toString
public G2D()
public G2D(double lon, double lat)
lon
- the longitudelat
- the latitudeprotected G2D(double... coords)
coords
- public double getLon()
public double getLat()
public int getCoordinateDimension()
getCoordinateDimension
in class Position
Copyright © 2022 geolatte.org. All rights reserved.