PositionToLongitude() public method

public PositionToLongitude ( kOS.Suffixed.Vector pos ) : double
pos kOS.Suffixed.Vector
return double
コード例 #1
0
ファイル: GeoCoordinates.cs プロジェクト: EbbiDos/KOS
 /// <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();
 }
コード例 #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();
        }
コード例 #3
0
ファイル: GeoCoordinates.cs プロジェクト: Whitecaribou/KOS
 /// <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();
 }
コード例 #4
0
ファイル: GeoCoordinates.cs プロジェクト: victorb/KOS
        /// <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();
        }