static HexCoords() { MatrixUserToCanon = new IntMatrix2D(2, 1, 0, 2, 0, 0, 2); MatrixCanonToUser = new IntMatrix2D(2, -1, 0, 2, 0, 1, 2); MatrixCustomToUser = new IntMatrix2D(2, 0, 0, 2, 0, 0, 2); // default to identity transformation, and MatrixUserToCustom = new IntMatrix2D(2, 0, 0, 2, 0, 0, 2); // its inverse, also the identity transformation }
public static void SetCustomMatrices(IntMatrix2D userToCustom, IntMatrix2D customToUser) { MatrixUserToCustom = userToCustom; MatrixCustomToUser = customToUser; }