Function EcefFromLatLonAltToRef
-
EcefFromLatLonAltToRef<T extends IVector3Like>(
latLonAlt: DeepImmutable<ILatLonAltLike>,
ellipsoid: DeepImmutable<
Pick<IEllipsoidLike, "semiMajorAxis" | "firstEccentricitySquared">,
>,
result: T,
): TType Parameters
- T extends IVector3Like
Parameters
- latLonAlt: DeepImmutable<ILatLonAltLike>
The latitude and longitude in radians, and the altitude relative to the reference ellipsoid's surface.
- ellipsoid: DeepImmutable<
Pick<IEllipsoidLike, "semiMajorAxis" | "firstEccentricitySquared">,
>Parameters for a reference ellipsoid (e.g., the Wgs84Ellipsoid).
- result: T
The resulting ECEF position
Returns T
The resulting ECEF position
Converts latitude, longitude, and altitude to an ECEF (Earth-Centered, Earth-Fixed) position using the specified ellipsoid. For the calculation, latitude is clamped to -PI/2 to PI/2.