public class GeoCoordinate
Coordinate in Mercator.
This coordinate system is used to locate an object's geographic location as it would appear on a map. Examples include the GPS position of the ego-vehicle or the position of landmarks, which can be used for localization or position of the detected objects.
Currently we use Spherical Earth Model for geodesic calculations. Each point is specified using longitude, latitude
.
Longitude ranges from -180
to 180
degrees, where 0
is Greenwich meridian, the positive
direction (+
) is to the East
, and the negative direction (-
) is to the West
.
Latitude ranges from -90
to +90
degrees, where 0
is Equator, the positive direction (+
) is
to the North
, and the negative direction (-
) is to the South
.
Constructor and Description |
---|
GeoCoordinate(double latitude,
double longitude)
Coordinate in Mercator.
|
Modifier and Type | Method and Description |
---|---|
double |
component1()
The latitude in degrees.
|
double |
component2()
The longitude in degrees.
|
GeoCoordinate |
copy(double latitude,
double longitude)
Coordinate in Mercator.
|
boolean |
equals(java.lang.Object p) |
double |
getLatitude()
The latitude in degrees.
|
double |
getLongitude()
The longitude in degrees.
|
int |
hashCode() |
java.lang.String |
toString() |
public GeoCoordinate(double latitude, double longitude)
Coordinate in Mercator.
This coordinate system is used to locate an object's geographic location as it would appear on a map. Examples include the GPS position of the ego-vehicle or the position of landmarks, which can be used for localization or position of the detected objects.
Currently we use Spherical Earth Model for geodesic calculations. Each point is specified using longitude, latitude
.
Longitude ranges from -180
to 180
degrees, where 0
is Greenwich meridian, the positive
direction (+
) is to the East
, and the negative direction (-
) is to the West
.
Latitude ranges from -90
to +90
degrees, where 0
is Equator, the positive direction (+
) is
to the North
, and the negative direction (-
) is to the South
.
latitude
- The latitude in degrees.longitude
- The longitude in degrees.latitude
- The latitude in degrees.longitude
- The longitude in degrees.public double getLatitude()
The latitude in degrees.
public double getLongitude()
The longitude in degrees.
public double component1()
The latitude in degrees.
public double component2()
The longitude in degrees.
public GeoCoordinate copy(double latitude, double longitude)
Coordinate in Mercator.
This coordinate system is used to locate an object's geographic location as it would appear on a map. Examples include the GPS position of the ego-vehicle or the position of landmarks, which can be used for localization or position of the detected objects.
Currently we use Spherical Earth Model for geodesic calculations. Each point is specified using longitude, latitude
.
Longitude ranges from -180
to 180
degrees, where 0
is Greenwich meridian, the positive
direction (+
) is to the East
, and the negative direction (-
) is to the West
.
Latitude ranges from -90
to +90
degrees, where 0
is Equator, the positive direction (+
) is
to the North
, and the negative direction (-
) is to the South
.
latitude
- The latitude in degrees.longitude
- The longitude in degrees.public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)