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