public static class CoordinateUtil.Coordinate extends Object implements Serializable
Constructor and Description |
---|
Coordinate(double lng,
double lat)
构造
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
double |
getLat()
获取纬度
|
double |
getLng()
获取经度
|
int |
hashCode() |
CoordinateUtil.Coordinate |
offset(CoordinateUtil.Coordinate offset)
当前坐标偏移指定坐标
|
CoordinateUtil.Coordinate |
setLat(double lat)
设置纬度
|
CoordinateUtil.Coordinate |
setLng(double lng)
设置经度
|
String |
toString() |
public Coordinate(double lng, double lat)
lng
- 经度lat
- 纬度public double getLng()
public CoordinateUtil.Coordinate setLng(double lng)
lng
- 经度public double getLat()
public CoordinateUtil.Coordinate setLat(double lat)
lat
- 纬度public CoordinateUtil.Coordinate offset(CoordinateUtil.Coordinate offset)
offset
- 偏移量Copyright © 2024. All rights reserved.