From 21c2b7b9ffb295dd99220de10a45d02dc4a22c64 Mon Sep 17 00:00:00 2001 From: Theodore Kruczek Date: Tue, 16 Jan 2024 22:03:12 -0500 Subject: [PATCH] fix: :sparkles: add missing lla function --- src/objects/GroundObject.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/objects/GroundObject.ts b/src/objects/GroundObject.ts index 2d42845..50b4b43 100644 --- a/src/objects/GroundObject.ts +++ b/src/objects/GroundObject.ts @@ -88,6 +88,18 @@ export class GroundObject extends BaseObject { return lla2eci(this.toGeodetic(), gmst); } + /** + * Returns the latitude, longitude, and altitude of the GroundObject. + * @returns The latitude, longitude, and altitude as an LlaVec3 object. + */ + lla(): LlaVec3 { + return { + lat: this.lat, + lon: this.lon, + alt: this.alt, + }; + } + /** * Converts the latitude, longitude, and altitude of the GroundObject to radians and kilometers. * @variation optimized version of this.toGeodetic() without class instantiation for better performance and