/// <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; }
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); }
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; }
/// <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); }