PositionToLongitude() public method

public PositionToLongitude ( kOS.Suffixed.Vector pos ) : double
pos kOS.Suffixed.Vector
return double
Exemplo n.º 1
0
 /// <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();
 }
Exemplo n.º 2
0
        /// <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();
        }
Exemplo n.º 3
0
 /// <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();
 }
Exemplo n.º 4
0
        /// <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();
        }