private int[][] GetStroke(string legX, string legY)
{
// Examples of legX, legY: "7UZ32232263353223222333242", "3w546647c9b96646475765444"
var X = DecompressStrokeLeg(legX);
var Y = DecompressStrokeLeg(legY);
int len = X.Length;
if (len != Y.Length)
{
throw new Exception("Coordinate length for Y side of the stroke does not match the coordinate length of X side of the stroke");
}
List<int[]> l = new List<int[]>();
for (int i = 0; i < len; i++)
{
l.Add(new int[] {X[i], Y[i]});
}
return l.ToArray();
}