Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | List of all members
LatLon Class Reference

Static Public Member Functions

static double GetAltitude (Vector3d bodyPosition, Vector3d worldPos, double Radius)
 
static bool GetImpactLatitudeAndLongitude (double Radius, Vector3d position, Vector3d velocity, out double latitude, out double longitude)
 
static double GetLatitude (Planetarium.CelestialFrame BodyFrame, Vector3d bodyPosition, Vector3d pos, bool isRadial=false)
 
static Vector2d GetLatitudeAndLongitude (Planetarium.CelestialFrame BodyFrame, Vector3d bodyPosition, Vector3d pos, bool isRadial=false)
 
static void GetLatLongAlt (Planetarium.CelestialFrame BodyFrame, Vector3d bodyPosition, double radius, Vector3d worldPos, out double lat, out double lon, out double alt)
 
static double GetLongitude (Planetarium.CelestialFrame BodyFrame, Vector3d bodyPosition, Vector3d pos, bool isRadial=false)
 
static Vector3d GetRelSurfaceNVector (double lat, double lon)
 Returns a planet-relative normal vector, given latitude and longitude More...
 
static Vector3d GetRelSurfacePosition (Planetarium.CelestialFrame BodyFrame, double Radius, double lat, double lon, double alt)
 Returns a planet-relative position, given the latitude, longitude and altitude. (takes into account planet rotation) More...
 
static Vector3d GetRelSurfacePosition (Planetarium.CelestialFrame BodyFrame, double Radius, double lat, double lon, double alt, out Vector3d normal)
 Returns a planet-relative position, given the latitude, longitude and altitude, and the local normal. (takes into account planet rotation) More...
 
static Vector3d GetRelSurfacePosition (Planetarium.CelestialFrame BodyFrame, Vector3d bodyPosition, Vector3d worldPosition)
 Returns a planet-relative position, given the world space position More...
 
static Vector3d GetSurfaceNVector (Planetarium.CelestialFrame BodyFrame, double lat, double lon)
 Returns a normal vector, given the latitude and longitude (takes planet rotation into account) More...
 
static Vector3d GetWorldSurfacePosition (Planetarium.CelestialFrame BodyFrame, Vector3 bodyPosition, double radius, double lat, double lon, double alt)
 Returns a worldspace position, given the latitude, longitude and altitude. (takes into account planet rotation) More...
 

Member Function Documentation

static double LatLon.GetAltitude ( Vector3d  bodyPosition,
Vector3d  worldPos,
double  Radius 
)
inlinestatic
static bool LatLon.GetImpactLatitudeAndLongitude ( double  Radius,
Vector3d  position,
Vector3d  velocity,
out double  latitude,
out double  longitude 
)
inlinestatic
static double LatLon.GetLatitude ( Planetarium.CelestialFrame  BodyFrame,
Vector3d  bodyPosition,
Vector3d  pos,
bool  isRadial = false 
)
inlinestatic
static Vector2d LatLon.GetLatitudeAndLongitude ( Planetarium.CelestialFrame  BodyFrame,
Vector3d  bodyPosition,
Vector3d  pos,
bool  isRadial = false 
)
inlinestatic
static void LatLon.GetLatLongAlt ( Planetarium.CelestialFrame  BodyFrame,
Vector3d  bodyPosition,
double  radius,
Vector3d  worldPos,
out double  lat,
out double  lon,
out double  alt 
)
inlinestatic
static double LatLon.GetLongitude ( Planetarium.CelestialFrame  BodyFrame,
Vector3d  bodyPosition,
Vector3d  pos,
bool  isRadial = false 
)
inlinestatic
static Vector3d LatLon.GetRelSurfaceNVector ( double  lat,
double  lon 
)
inlinestatic

Returns a planet-relative normal vector, given latitude and longitude

Returns
A normalized radial vector, relative to planet space
static Vector3d LatLon.GetRelSurfacePosition ( Planetarium.CelestialFrame  BodyFrame,
double  Radius,
double  lat,
double  lon,
double  alt 
)
inlinestatic

Returns a planet-relative position, given the latitude, longitude and altitude. (takes into account planet rotation)

static Vector3d LatLon.GetRelSurfacePosition ( Planetarium.CelestialFrame  BodyFrame,
double  Radius,
double  lat,
double  lon,
double  alt,
out Vector3d  normal 
)
inlinestatic

Returns a planet-relative position, given the latitude, longitude and altitude, and the local normal. (takes into account planet rotation)

static Vector3d LatLon.GetRelSurfacePosition ( Planetarium.CelestialFrame  BodyFrame,
Vector3d  bodyPosition,
Vector3d  worldPosition 
)
inlinestatic

Returns a planet-relative position, given the world space position

static Vector3d LatLon.GetSurfaceNVector ( Planetarium.CelestialFrame  BodyFrame,
double  lat,
double  lon 
)
inlinestatic

Returns a normal vector, given the latitude and longitude (takes planet rotation into account)

Returns
A normalized vector, pointing to the resulting direction
static Vector3d LatLon.GetWorldSurfacePosition ( Planetarium.CelestialFrame  BodyFrame,
Vector3  bodyPosition,
double  radius,
double  lat,
double  lon,
double  alt 
)
inlinestatic

Returns a worldspace position, given the latitude, longitude and altitude. (takes into account planet rotation)


The documentation for this class was generated from the following file: