@ue-too/border / index / inverseOrthoProjection
関数: inverseOrthoProjection()
inverseOrthoProjection(
interestPoint,origin):GeoCoord
Converts an orthographic projection point back to geographic coordinates.
パラメータ
interestPoint
Point
The point in orthographic projection (in meters)
origin
The center point of the hemisphere (must match the forward projection)
戻り値
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: ... }