kOS.GeoCoordinates.GeoCoordinates C# (CSharp) Method

GeoCoordinates() public method

public GeoCoordinates ( Vessel vessel ) : System
vessel Vessel
return System
        public GeoCoordinates(Vessel vessel)
        {
            this.Lat = (double)VesselUtils.GetVesselLattitude(vessel);
            this.Lng = (double)VesselUtils.GetVesselLongitude(vessel);
            this.Vessel = vessel;

            Body = vessel.mainBody;
        }

Same methods

GeoCoordinates::GeoCoordinates ( Vessel vessel, double lat, double lng ) : System
GeoCoordinates::GeoCoordinates ( Vessel vessel, float lat, float lng ) : System