Constructs the Projection
How to transform the projected coordinates to world units.
How to transform the projected coordinates to world units.
The type of this [Projection].
Returns the scaling factor that must be used to convert the units used by worldPoint
to
meters.
The position in world coordinates.
Returns the signed distance between the given coordinates and the closest point on the surface.
The position in world coordinates.
Gets the TransformLike of the local tangent space at the given point.
The geo / world coordinates.
The TransformLike.
Projects bounds in geo coordinates to a bounding box in world coordinates.
Example:
const bounds = projection.projectBox(geoBox);
console.log(bounds.min, bounds.max);
The bounding box in geo coordinates.
Projects bounds in geo coordinates to a bounding box in world coordinates.
Example:
const bounds = projection.projectBox(geoBox, new THREE.Box3());
console.log(bounds.min, bounds.max);
The bounding box in geo coordinates.
The resulting OrientedBox3Like.
Projects a point from geo coordinates (latitude, longitude, altitude) to world coordinates (x,y,z).
Example:
const worldPos = new THREE.Vector3();
projection.projectPoint(geoPos, worldPos);
The position in geo coordinates.
The optional object used to store the resulting world position, result must implement Vector3Like.
Scales the given world coordinates to the surface.
The position in world coordinates.
Returns the surface normal at the given world position.
The position in world coordinates.
Returns the surface normal at the given world position.
The position in world coordinates.
The resulting normal vector.
Returns the altitude at the given world position (x,y,z) in meters.
The position in world coordinates.
Returns the geo coordinates (latitude, longitude, altitude) from the given world position (x,y,z).
Example:
const geoPos = projection.unprojectPoint(worldPos);
console.log(geoPos.latitude, geoPos.longitude, geoPos.altitude);
The position in world coordinates.
Returns the world extents in world coordinates.
The minimum elevation in meters.
The maximum elevation in meters.
The optional object that will be used to create the resulting bounding box.
Generated using TypeDoc
Projection
is used to convert positions from geo coordinates to world coordinates and vice versa.