Inheritance: kOS.Safe.Serialization.SerializableStructure, IHasSharedObjects
コード例 #1
0
ファイル: OrbitInfo.cs プロジェクト: Whitecaribou/KOS
 public OrbitInfo(Orbitable orb, SharedObjects sharedObj)
 {
     orbit = orb.Orbit;
     shared = sharedObj;
     name = orb.GetName();
     InitializeSuffixes();
 }
コード例 #2
0
ファイル: OrbitInfo.cs プロジェクト: CalebJ2/KOS
 public OrbitInfo(Orbitable orb, SharedObjects sharedObj)
     : this()
 {
     orbit = orb.Orbit;
     Shared = sharedObj;
     name = orb.GetName();
 }
コード例 #3
0
ファイル: OrbitInfo.cs プロジェクト: tfischer4765/KOS
 public OrbitInfo(Orbitable orb, SharedObjects sharedObj)
 {
     orbit  = orb.Orbit;
     shared = sharedObj;
     name   = orb.GetName();
     InitializeSuffixes();
 }
コード例 #4
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();
 }
コード例 #5
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();
        }
コード例 #6
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();
 }
コード例 #7
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();
        }
コード例 #8
0
 public OrbitInfo(Orbitable orb, SharedObjects sharedObj) : this()
 {
     orbit  = orb.Orbit;
     Shared = sharedObj;
     name   = orb.GetName();
 }