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

Remarks ​

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: ... }