Coordinate transformation for the rectangular hexgrid shape