Inheritance: kOS.Safe.Serialization.SerializableStructure, IHasSharedObjects
Exemplo n.º 1
0
 public OrbitInfo(Orbitable orb, SharedObjects sharedObj)
 {
     orbit = orb.Orbit;
     shared = sharedObj;
     name = orb.GetName();
     InitializeSuffixes();
 }
Exemplo n.º 2
0
 public OrbitInfo(Orbitable orb, SharedObjects sharedObj)
     : this()
 {
     orbit = orb.Orbit;
     Shared = sharedObj;
     name = orb.GetName();
 }
Exemplo n.º 3
0
 public OrbitInfo(Orbitable orb, SharedObjects sharedObj)
 {
     orbit  = orb.Orbit;
     shared = sharedObj;
     name   = orb.GetName();
     InitializeSuffixes();
 }
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();
 }
Exemplo n.º 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();
        }
Exemplo n.º 6
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.º 7
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();
        }
Exemplo n.º 8
0
 public OrbitInfo(Orbitable orb, SharedObjects sharedObj) : this()
 {
     orbit  = orb.Orbit;
     Shared = sharedObj;
     name   = orb.GetName();
 }