Exemple #1
0
 /// <summary>
 /// return the index of Liconic Possition [1 34]
 /// </summary>
 /// <param name="LP">LicPos</param>
 /// <returns>Liconic Possition [1 34]</returns>
 public static int LicPos2Ind(LicPos LP)
 {
     int ind = (LP.Cart -1)*17 + LP.Pos;
     return ind;
 }
Exemple #2
0
        public static LicPos Ind2LicPos(int ind)
        {
            LicPos LP = new LicPos(((ind - 1) % 17) + 1, Convert.ToInt32(Math.Ceiling(Convert.ToDouble(ind) / 17.0)));

            return(LP);
        }
Exemple #3
0
        public static LicPos Ind2LicPos(int ind)
        {
            LicPos LP = new LicPos(((ind-1)%17)+1,Convert.ToInt32(Math.Ceiling(Convert.ToDouble(ind)/17.0)));

            return LP;
        }
Exemple #4
0
        /// <summary>
        /// return the index of Liconic Possition [1 34]
        /// </summary>
        /// <param name="LP">LicPos</param>
        /// <returns>Liconic Possition [1 34]</returns>
        public static int LicPos2Ind(LicPos LP)
        {
            int ind = (LP.Cart - 1) * 17 + LP.Pos;

            return(ind);
        }