Shape2D# class tqec.utils.Shape2D(x, y)[source]# Bases: Vec2D Methods __init__(x, y) to_numpy_shape() Returns the shape according to numpy indexing. Attributes x y Detailed methods Parameters: x (int) y (int) __init__(x, y)# Parameters: x (int) y (int) Return type: None to_numpy_shape()[source]# Returns the shape according to numpy indexing. In the coordinate system used in this library, numpy indexes arrays using (y, x) coordinates. This method is here to translate a Shape instance to a numpy shape transparently for the user. Return type: tuple[int, int]