示例#1
0
            public readonly double ILSRange; // range of ILS in meter

            public Runway(String name, Coords coords, float elevation, float heading, float glideslope = 3.0f)
            {
                this.name         = name;
                this.coords       = coords;
                this.elevation    = elevation;
                this.heading      = heading;
                this.glideslope   = glideslope;
                this.slopeTangens = (float)Math.Tan(Utils.DegreeToRadians(glideslope));
                this.To           = heading;
                this.From         = NavUtils.InverseHeading(To);
                //
                // currently constant
                this.HasILS   = true;
                this.HasDME   = true;
                this.ILSCone  = 10.0;
                this.ILSRange = 80000.0;
            }