Constructor
new MapTools()
Methods
(static) geocentricToLatlng(vec3) → {object}
地心坐标转经纬度坐标
Parameters:
Name | Type | Description |
---|---|---|
vec3 |
* | 地心Vector3 |
Returns:
{latitude, longitude, height};
- Type
- object
(static) latlngToGeocentric(latitude, longitude, height)
经纬度坐标转地心坐标
Parameters:
Name | Type | Description |
---|---|---|
latitude |
* | 纬度 |
longitude |
* | 经度 |
height |
* | 高程 |
(static) latlngToVector(latitude, longitude)
经纬度坐标转世界坐标
Parameters:
Name | Type | Description |
---|---|---|
latitude |
* | 维度 |
longitude |
* | 经度 |
Returns:
Vector3,y为0
(static) vectorToLatlng(vec3) → {object}
世界坐标转经纬度坐标
Parameters:
Name | Type | Description |
---|---|---|
vec3 |
* |
Returns:
{latitude,longitude}
- Type
- object