struct Predict::LatLongAlt

Overview

Struct containing latitude, longitude and altitude values.

Defined in:

predict/coordinates.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(latitude : Float64, longitude : Float64, altitude : Float64) #

[View source]

Class Method Detail

def self.from_degrees(lat, long, alt) #

Creates a LatLongAlt from lat and long measured in degrees (where North and East are positive) and alt in meters above sea level.


[View source]

Instance Method Detail

def altitude : Float64 #

Altitude in kilometers


[View source]
def latitude : Float64 #

Latitude in radians, north positive


[View source]
def longitude : Float64 #

Longitude in radians, east positive


[View source]
def look_at(other : TEME, time, grav_type = GravityConstants::WGS72) : LookAngle #

Calculates look angles to an object in TEME coordinate space.


[View source]
def to_teme(time, grav_type = GravityConstants::WGS72) : TEME #

Converts latitude and longitude to TEME coordinates at time.


[View source]