Skip to content

@ue-too/border / index / inverseOrthoProjection

函式: inverseOrthoProjection()

inverseOrthoProjection(interestPoint, origin): GeoCoord

定義於: projection.ts:176

Converts an orthographic projection point back to geographic coordinates.

參數

interestPoint

Point

The point in orthographic projection (in meters)

origin

GeoCoord

The center point of the hemisphere (must match the forward projection)

回傳

GeoCoord

The geographic coordinate

備註

This is the inverse of orthoProjection. Given a point in orthographic projection space (in meters), it returns the corresponding latitude/longitude.

範例

typescript
const origin = { latitude: 45.0, longitude: 0.0 };
const point = { x: 100000, y: 200000 }; // Some point in projection space
const coord = inverseOrthoProjection(point, origin);
console.log(coord); // { latitude: ..., longitude: ... }