public abstract GetPosition ( ) : kOS.Suffixed.Vector | ||
리턴 | kOS.Suffixed.Vector |
/// <summary> /// Build a GeoCoordinates from the current lat/long of the orbitable /// object passed in. The object being checked for should be in the same /// SOI as the vessel running the CPU or the results are meaningless. /// </summary> /// <param name="orb">object to take current coords of</param> /// <param name="sharedObj">to know the current CPU's running vessel</param> public GeoCoordinates(Orbitable orb, SharedObjects sharedObj) { Shared = sharedObj; Vector p = orb.GetPosition(); Lat = orb.PositionToLatitude(p); Lng = orb.PositionToLongitude(p); Body = orb.GetParentBody(); }
/// <summary> /// Build a GeoCoordinates from the current lat/long of the orbitable /// object passed in. The object being checked for should be in the same /// SOI as the vessel running the CPU or the results are meaningless. /// </summary> /// <param name="orb">object to take current coords of</param> /// <param name="sharedObj">to know the current CPU's running vessel</param> public GeoCoordinates(Orbitable orb, SharedObjects sharedObj) : this() { Shared = sharedObj; Vector p = orb.GetPosition(); Latitude = orb.PositionToLatitude(p); Longitude = orb.PositionToLongitude(p); Body = orb.GetParentBody(); }
/// <summary> /// Build a GeoCoordinates from the current lat/long of the orbitable /// object passed in. The object being checked for should be in the same /// SOI as the vessel running the CPU or the results are meaningless. /// </summary> /// <param name="orb">object to take current coords of</param> /// <param name="sharedObj">to know the current CPU's running vessel</param> public GeoCoordinates(Orbitable orb, SharedObjects sharedObj) { Shared = sharedObj; Vector p = orb.GetPosition(); Latitude = orb.PositionToLatitude(p); Longitude = orb.PositionToLongitude(p); Body = orb.GetParentBody(); GeoCoordsInitializeSuffixes(); }
/// <summary> /// Build a GeoCoordinates from the current lat/long of the orbitable /// object passed in. The object being checked for should be in the same /// SOI as the vessel running the CPU or the results are meaningless. /// </summary> /// <param name="orb">object to take current coords of</param> /// <param name="sharedObj">to know the current CPU's running vessel</param> public GeoCoordinates(Orbitable orb, SharedObjects sharedObj) { Shared = sharedObj; Vector p = orb.GetPosition(); Lat = orb.PositionToLatitude(p); Lng = orb.PositionToLongitude(p); Body = orb.GetParentBody(); GeoCoordsInitializeSuffixes(); }