Skip to content

@ue-too/border / inverseOrthoProjection

Function: inverseOrthoProjection()

inverseOrthoProjection(interestPoint, origin): GeoCoord

Defined in: projection.ts:176

Converts an orthographic projection point back to geographic coordinates.

Parameters

interestPoint

Point

The point in orthographic projection (in meters)

origin

GeoCoord

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

Returns

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.

Example

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