Skip to content

KBE3D / KBCore / Cesium / GeographicProjection

类: GeographicProjection

A simple map projection where longitude and latitude are linearly mapped to X and Y by multiplying them by the Ellipsoid#maximumRadius. This projection is commonly known as geographic, equirectangular, equidistant cylindrical, or plate carrée. When using the WGS84 ellipsoid, it is also known as EPSG:4326.

参数

The ellipsoid.

属性

ellipsoid

readonly ellipsoid: Ellipsoid

Gets the Ellipsoid.

方法

project()

project(cartographic: Cartographic, result?: Cartesian3): Cartesian3

Projects a set of Cartographic coordinates, in radians, to map coordinates, in meters. X and Y are the longitude and latitude, respectively, multiplied by the maximum radius of the ellipsoid. Z is the unmodified height.

参数

cartographic

Cartographic

The coordinates to project.

result?

Cartesian3

An instance into which to copy the result. If this parameter is undefined, a new instance is created and returned.

返回

Cartesian3

The projected coordinates. If the result parameter is not undefined, the coordinates are copied there and that instance is returned. Otherwise, a new instance is created and returned.


unproject()

unproject(cartesian: Cartesian3, result?: Cartographic): Cartographic

Unprojects a set of projected Cartesian3 coordinates, in meters, to Cartographic coordinates, in radians. Longitude and Latitude are the X and Y coordinates, respectively, divided by the maximum radius of the ellipsoid. Height is the unmodified Z coordinate.

参数

cartesian

Cartesian3

The Cartesian position to unproject with height (z) in meters.

result?

Cartographic

An instance into which to copy the result. If this parameter is undefined, a new instance is created and returned.

返回

Cartographic

The unprojected coordinates. If the result parameter is not undefined, the coordinates are copied there and that instance is returned. Otherwise, a new instance is created and returned.

构造函数

构造函数

new GeographicProjection(ellipsoid?: Ellipsoid): GeographicProjection

参数

ellipsoid?

Ellipsoid

返回

GeographicProjection

KBE3D @3.0.0 Copyright © 2024-present KBE3D