Exemple #1
0
        public int GetRowFromNearestParallel(double latitude)
        {
            int degrees = (int)ProjectionMath.RadiansToDegreesFn(ProjectionMath.NormalizeLatitude(latitude));

            if (degrees < -80 || degrees > 84)
            {
                return(0);
            }
            if (degrees > 80)
            {
                return(24);
            }
            return((degrees + 80) / 8 + 3);
        }