Shifted Cartesian Layout
Coordinate system that represents a shifted Cartesian grid of compile-time coordinate types. In contrast to Cartesian layouts, the faces of shifted Cartesian layouts can be arranged in different ways. The most obvious are the distinction between the orientation of the shift that can be horizontal and vertical.
Header: fiction/layouts/shifted_cartesian_layout.hpp
-
struct horizontal_shift_cartesian
+-------+ | | | | | | +---+---+---+ | | | | | | +-------+
Subclassed by fiction::even_row_cartesian, fiction::odd_row_cartesian
-
struct vertical_shift_cartesian
+-------+ | | | +-------+ | | | +-------+ | | | +-------+
Subclassed by fiction::even_column_cartesian, fiction::odd_column_cartesian
Furthermore, when assuming rectangular-ish layouts, either odd or even rows or columns can be shifted inwards, yielding a total of four different orientations.
-
struct odd_row_cartesian : public fiction::horizontal_shift_cartesian
+-------+-------+-------+ | | | | | (0,0) | (1,0) | (2,0) | | | | | +---+---+---+---+---+---+---+ | | | | | (0,1) | (1,1) | (2,1) | | | | | +---+---+---+---+---+---+---+ | | | | | (0,2) | (1,2) | (2,2) | | | | | +-------+-------+-------+
-
struct even_row_cartesian : public fiction::horizontal_shift_cartesian
+-------+-------+-------+ | | | | | (0,0) | (1,0) | (2,0) | | | | | +---+---+---+---+---+---+---+ | | | | | (0,1) | (1,1) | (2,1) | | | | | +---+---+---+---+---+---+---+ | | | | | (0,2) | (1,2) | (2,2) | | | | | +-------+-------+-------+
-
struct odd_column_cartesian : public fiction::vertical_shift_cartesian
+-------+ +-------+ | | | | | (0,0) +-------+ (2,0) +-------+ | | | | | +-------+ (1,0) +-------+ (3,0) | | | | | | | (0,1) +-------+ (2,1) +-------+ | | | | | +-------+ (1,1) +-------+ (3,1) | | | | | | | (0,2) +-------+ (2,2) +-------+ | | | | +-------+ +-------+
-
struct even_column_cartesian : public fiction::vertical_shift_cartesian
+-------+ +-------+ | | | | +-------+ (1,0) +-------+ (3,0) | | | | | | | (0,0) +-------+ (2,0) +-------+ | | | | | +-------+ (1,1) +-------+ (3,1) | | | | | | | (0,1) +-------+ (2,1) +-------+ | | | | | +-------+ (1,2) +-------+ (3,2) | | | | | +-------+ +-------+
The shifted Cartesian layout supports all of them via template parameters. It shares its members with hexagonal_layout
.
-
template<typename OffsetCoordinateType = offset::ucoord_t, typename ShiftedCartesianCoordinateSystem = even_row_cartesian>
class shifted_cartesian_layout : public fiction::hexagonal_layout<offset::ucoord_t, std::conditional_t<std::is_same_v<even_row_cartesian, odd_row_cartesian>, odd_row_hex, std::conditional_t<std::is_same_v<even_row_cartesian, even_row_cartesian>, even_row_hex, std::conditional_t<std::is_same_v<even_row_cartesian, odd_column_cartesian>, odd_column_hex, std::conditional_t<std::is_same_v<even_row_cartesian, even_column_cartesian>, even_column_hex, void>>>>, cube::coord_t> A layout type that utilizes offset coordinates to represent a Cartesian layout with shifted coordinates. Its faces are organizes in an offset coordinate system as provided. These can either be the horizontal_shift_cartesian or vertical_shift_cartesian orientation. Based on that, two respectively possible coordinate systems emerge accordingly: odd_row_cartesian and even_row_cartesian for horizontal shifts and odd_column_cartesian and even_column_cartesian for vertical shifts. All are sketched in ASCII above.
- Template Parameters:
OffsetCoordinateType – The coordinate implementation to be used. Offset coordinates are required.
ShiftedCartesianCoordinateSystem – One of the following: odd_row_cartesian, even_row_cartesian, odd_column_cartesian, even_column_cartesian.
Public Functions
-
inline explicit shifted_cartesian_layout(const typename HexagonalLayout::aspect_ratio &ar = {})
Standard constructor. The given aspect ratio points to the highest possible coordinate in the layout. That means in the even_column_cartesian ASCII layout representation above
ar = (3,2)
. Consequently, withar = (0,0)
, the layout has exactly one coordinate.- Parameters:
ar – Highest possible position in the layout.
- class mnt.pyfiction.shifted_cartesian_layout
A layout type that utilizes offset coordinates to represent a Cartesian layout with shifted coordinates. In this implementation, odd columns are vertically shifted. Its faces are organized in the following way:
+-------+ +-------+ | | | | +-------+ (1,0) +-------+ (3,0) | | | | | | | (0,0) +-------+ (2,0) +-------+ | | | | | +-------+ (1,1) +-------+ (3,1) | | | | | | | (0,1) +-------+ (2,1) +-------+ | | | | | +-------+ (1,2) +-------+ (3,2) | | | | | +-------+ +-------+
- above(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) mnt.pyfiction.pyfiction.offset_coordinate
Returns the coordinate that is directly above a given coordinate c, i.e., the face whose z-dimension is higher by 1. If c’s z-dimension is already at maximum, c is returned instead.
- Parameter
c
: Coordinate whose above counterpart is desired.
- Returns:
Coordinate directly above c.
- Parameter
- adjacent_coordinates(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) list[mnt.pyfiction.pyfiction.offset_coordinate]
Returns a container that contains all coordinates that are adjacent to a given one. Thereby, only cardinal directions are being considered, i.e., the container contains all coordinates ac for which is_adjacent(c, ac) returns true.
Coordinates that are outside of the layout bounds are not considered. Thereby, the size of the returned container is at most 4.
- Parameter
c
: Coordinate whose adjacent ones are desired.
- Returns:
A container that contains all of c’s adjacent coordinates.
- Parameter
- adjacent_opposite_coordinates(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) list[tuple[mnt.pyfiction.pyfiction.offset_coordinate, mnt.pyfiction.pyfiction.offset_coordinate]]
Returns a container that contains all coordinates pairs of opposing adjacent coordinates with respect to a given one. In this Cartesian layout, the container will contain (north(c), south(c)) and (east(c), west(c)).
This function comes in handy when straight lines on the layout are to be examined.
Coordinates outside of the layout bounds are not being considered.
- Parameter
c
: Coordinate whose opposite ones are desired.
- Returns:
A container that contains pairs of c’s opposing coordinates.
- Parameter
- area(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout) int
Returns the layout’s number of faces depending on the coordinate type.
- Returns:
Area of layout.
- below(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) mnt.pyfiction.pyfiction.offset_coordinate
Returns the coordinate that is directly below a given coordinate c, i.e., the face whose z-dimension is lower by 1. If c’s z-dimension is already at minimum, c is returned instead.
- Parameter
c
: Coordinate whose below counterpart is desired.
- Returns:
Coordinate directly below c.
- Parameter
- coord(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, x: SupportsInt, y: SupportsInt, z: SupportsInt = 0) mnt.pyfiction.pyfiction.offset_coordinate
Creates and returns a coordinate in the layout from the given x-, y-, and z-values.
@note This function is equivalent to calling OffsetCoordinateType(x, y, z).
- Template parameter
X
: x-type.
- Template parameter
Y
: y-type.
- Template parameter
Z
: z-type.
- Parameter
x
: x-value.
- Parameter
y
: y-value.
- Parameter
z
: z-value.
- Returns:
A coordinate in the layout of type OffsetCoordinateType.
- Template parameter
- coordinates(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout) list[mnt.pyfiction.pyfiction.offset_coordinate]
Returns a range of all coordinates accessible in the layout between start and stop. If no values are provided, all coordinates in the layout will be included. The returned iterator range points to the first and last coordinate, respectively. The range object can be used within a for-each loop. Incrementing the iterator is equivalent to nested for loops in the order z, y, x. Consequently, the iteration will happen inside out, i.e., x will be iterated first, then y, then z.
- Parameter
start
: First coordinate to include in the range of all coordinates.
- Parameter
stop
: Last coordinate (exclusive) to include in the range of all coordinates.
- Returns:
An iterator range from start to stop. If they are not provided, the first/last coordinate is used as a default.
- Parameter
- east(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) mnt.pyfiction.pyfiction.offset_coordinate
Returns the coordinate that is directly adjacent in eastern direction of a given coordinate c, i.e., the face whose x-dimension is higher by 1. If c’s x-dimension is already at maximum, c is returned instead.
- Parameter
c
: Coordinate whose eastern counterpart is desired.
- Returns:
Coordinate adjacent and east of c.
- Parameter
- eastern_border_of(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) mnt.pyfiction.pyfiction.offset_coordinate
Returns the coordinate with the same y and z values as a given coordinate but that is located at the layout’s eastern border.
- Parameter
c
: Coordinate whose border counterpart is desired.
- Returns:
The eastern border equivalent of c.
- Parameter
- ground_coordinates(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout) list[mnt.pyfiction.pyfiction.offset_coordinate]
Returns a range of all coordinates accessible in the layout’s ground layer between start and stop. The iteration order is the same as for the coordinates function but without the z dimension.
- Parameter
start
: First coordinate to include in the range of all ground coordinates.
- Parameter
stop
: Last coordinate (exclusive) to include in the range of all ground coordinates.
- Returns:
An iterator range from start to stop. If they are not provided, the first/last coordinate in the ground layer is used as a default.
- Parameter
- is_above(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c1: mnt.pyfiction.pyfiction.offset_coordinate, c2: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns true iff coordinate c2 is directly above coordinate c1.
- Parameter
c1
: Base coordinate.
- Parameter
c2
: Coordinate to test for its location in relation to c1.
- Returns:
true iff c2 is directly above c1.
- Parameter
- is_adjacent_elevation_of(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c1: mnt.pyfiction.pyfiction.offset_coordinate, c2: mnt.pyfiction.pyfiction.offset_coordinate) bool
Similar to is_adjacent_of but also considers c1’s elevation, i.e., if c2 is adjacent to above(c1) or below(c1).
- Parameter
c1
: Base coordinate.
- Parameter
c2
: Coordinate to test for its location in relation to c1.
- Returns:
true iff c2 is either directly north, east, south, or west of c1 or c1’s elevations.
- Parameter
- is_adjacent_of(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c1: mnt.pyfiction.pyfiction.offset_coordinate, c2: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns true iff coordinate c2 is either directly north, east, south, or west of coordinate c1.
- Parameter
c1
: Base coordinate.
- Parameter
c2
: Coordinate to test for its location in relation to c1.
- Returns:
true iff c2 is either directly north, east, south, or west of c1.
- Parameter
- is_at_any_border(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns whether the given coordinate is located at any of the layout’s borders where x or y are either minimal or maximal.
- Parameter
c
: Coordinate to check for border location.
- Returns:
true iff c is located at any of the layout’s borders.
- Parameter
- is_at_eastern_border(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns whether the given coordinate is located at the layout’s eastern border where x is maximal.
- Parameter
c
: Coordinate to check for border location.
- Returns:
true iff c is located at the layout’s northern border.
- Parameter
- is_at_northern_border(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns whether the given coordinate is located at the layout’s northern border where y is minimal.
- Parameter
c
: Coordinate to check for border location.
- Returns:
true iff c is located at the layout’s northern border.
- Parameter
- is_at_southern_border(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns whether the given coordinate is located at the layout’s southern border where y is maximal.
- Parameter
c
: Coordinate to check for border location.
- Returns:
true iff c is located at the layout’s southern border.
- Parameter
- is_at_western_border(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns whether the given coordinate is located at the layout’s western border where x is minimal.
- Parameter
c
: Coordinate to check for border location.
- Returns:
true iff c is located at the layout’s western border.
- Parameter
- is_below(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c1: mnt.pyfiction.pyfiction.offset_coordinate, c2: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns true iff coordinate c2 is directly below coordinate c1.
- Parameter
c1
: Base coordinate.
- Parameter
c2
: Coordinate to test for its location in relation to c1.
- Returns:
true iff c2 is directly below c1.
- Parameter
- is_crossing_layer(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns whether the given coordinate is located in a crossing layer where z is not minimal.
- Parameter
c
: Coordinate to check for elevation.
- Returns:
true iff c is in a crossing layer.
- Parameter
- is_east_of(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c1: mnt.pyfiction.pyfiction.offset_coordinate, c2: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns true iff coordinate c2 is directly east of coordinate c1.
- Parameter
c1
: Base coordinate.
- Parameter
c2
: Coordinate to test for its location in relation to c1.
- Returns:
true iff c2 is directly east of c1.
- Parameter
- is_eastwards_of(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c1: mnt.pyfiction.pyfiction.offset_coordinate, c2: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns true iff coordinate c2 is somewhere east of coordinate c1.
- Parameter
c1
: Base coordinate.
- Parameter
c2
: Coordinate to test for its location in relation to c1.
- Returns:
true iff c2 is somewhere east of c1.
- Parameter
- is_ground_layer(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns whether the given coordinate is located in the ground layer where z is minimal.
- Parameter
c
: Coordinate to check for elevation.
- Returns:
true iff c is in ground layer.
- Parameter
- is_north_of(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c1: mnt.pyfiction.pyfiction.offset_coordinate, c2: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns true iff coordinate c2 is directly north of coordinate c1.
- Parameter
c1
: Base coordinate.
- Parameter
c2
: Coordinate to test for its location in relation to c1.
- Returns:
true iff c2 is directly north of c1.
- Parameter
- is_northwards_of(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c1: mnt.pyfiction.pyfiction.offset_coordinate, c2: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns true iff coordinate c2 is somewhere north of coordinate c1.
- Parameter
c1
: Base coordinate.
- Parameter
c2
: Coordinate to test for its location in relation to c1.
- Returns:
true iff c2 is somewhere north of c1.
- Parameter
- is_south_of(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c1: mnt.pyfiction.pyfiction.offset_coordinate, c2: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns true iff coordinate c2 is directly south of coordinate c1.
- Parameter
c1
: Base coordinate.
- Parameter
c2
: Coordinate to test for its location in relation to c1.
- Returns:
true iff c2 is directly south of c1.
- Parameter
- is_southwards_of(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c1: mnt.pyfiction.pyfiction.offset_coordinate, c2: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns true iff coordinate c2 is somewhere south of coordinate c1.
- Parameter
c1
: Base coordinate.
- Parameter
c2
: Coordinate to test for its location in relation to c1.
- Returns:
true iff c2 is somewhere south of c1.
- Parameter
- is_west_of(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c1: mnt.pyfiction.pyfiction.offset_coordinate, c2: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns true iff coordinate c2 is directly west of coordinate c1.
- Parameter
c1
: Base coordinate.
- Parameter
c2
: Coordinate to test for its location in relation to c1.
- Returns:
true iff c2 is directly west of c1.
- Parameter
- is_westwards_of(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c1: mnt.pyfiction.pyfiction.offset_coordinate, c2: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns true iff coordinate c2 is somewhere west of coordinate c1.
- Parameter
c1
: Base coordinate.
- Parameter
c2
: Coordinate to test for its location in relation to c1.
- Returns:
true iff c2 is somewhere west of c1.
- Parameter
- is_within_bounds(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) bool
Returns whether the given coordinate is located within the layout bounds.
- Parameter
c
: Coordinate to check for boundary.
- Returns:
true iff c is located within the layout bounds.
- Parameter
- north(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) mnt.pyfiction.pyfiction.offset_coordinate
Returns the coordinate that is directly adjacent in northern direction of a given coordinate c, i.e., the face whose y-dimension is lower by 1. If c’s y-dimension is already at minimum, c is returned instead.
- Parameter
c
: Coordinate whose northern counterpart is desired.
- Returns:
Coordinate adjacent and north of c.
- Parameter
- north_east(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) mnt.pyfiction.pyfiction.offset_coordinate
Returns the coordinate that is located in north-eastern direction of a given coordinate c, i.e., the face whose x-dimension is higher by 1 and whose y-dimension is lower by 1. If c’s x-dimension is already at maximum or c’s y-dimension is already at minimum, c is returned instead.
- Parameter
c
: Coordinate whose north-eastern counterpart is desired.
- Returns:
Coordinate directly north-eastern of c.
- Parameter
- north_west(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) mnt.pyfiction.pyfiction.offset_coordinate
Returns the coordinate that is located in north-western direction of a given coordinate c, i.e., the face whose x-dimension and y-dimension are lower by 1. If c’s x-dimension or y-dimension are already at minimum, c is returned instead.
- Parameter
c
: Coordinate whose north-western counterpart is desired.
- Returns:
Coordinate directly north-western of c.
- Parameter
- northern_border_of(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) mnt.pyfiction.pyfiction.offset_coordinate
Returns the coordinate with the same x and z values as a given coordinate but that is located at the layout’s northern border.
- Parameter
c
: Coordinate whose border counterpart is desired.
- Returns:
The northern border equivalent of c.
- Parameter
- resize(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, dimension: mnt.pyfiction.pyfiction.offset_coordinate) None
Updates the layout’s dimensions, effectively resizing it.
- Parameter
ar
: New aspect ratio.
- Parameter
- south(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) mnt.pyfiction.pyfiction.offset_coordinate
Returns the coordinate that is directly adjacent in southern direction of a given coordinate c, i.e., the face whose y-dimension is higher by 1. If c’s y-dimension is already at maximum, c is returned instead.
- Parameter
c
: Coordinate whose southern counterpart is desired.
- Returns:
Coordinate adjacent and south of c.
- Parameter
- south_east(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) mnt.pyfiction.pyfiction.offset_coordinate
Returns the coordinate that is located in south-eastern direction of a given coordinate c, i.e., the face whose x-dimension and y-dimension are higher by 1. If c’s x-dimension or y-dimension are already at maximum, c is returned instead.
- Parameter
c
: Coordinate whose south-eastern counterpart is desired.
- Returns:
Coordinate directly south-eastern of c.
- Parameter
- south_west(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) mnt.pyfiction.pyfiction.offset_coordinate
Returns the coordinate that is located in south-western direction of a given coordinate c, i.e., the face whose x-dimension is lower by 1 and whose y-dimension is higher by 1. If c’s x-dimension is already at minimum or c’s y-dimension is already at maximum, c is returned instead.
- Parameter
c
: Coordinate whose south-western counterpart is desired.
- Returns:
Coordinate directly south-western of c.
- Parameter
- southern_border_of(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) mnt.pyfiction.pyfiction.offset_coordinate
Returns the coordinate with the same x and z values as a given coordinate but that is located at the layout’s southern border.
- Parameter
c
: Coordinate whose border counterpart is desired.
- Returns:
The southern border equivalent of c.
- Parameter
- west(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) mnt.pyfiction.pyfiction.offset_coordinate
Returns the coordinate that is directly adjacent in western direction of a given coordinate c, i.e., the face whose x-dimension is lower by 1. If c’s x-dimension is already at minimum, c is returned instead.
- Parameter
c
: Coordinate whose western counterpart is desired.
- Returns:
Coordinate adjacent and west of c.
- Parameter
- western_border_of(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout, c: mnt.pyfiction.pyfiction.offset_coordinate) mnt.pyfiction.pyfiction.offset_coordinate
Returns the coordinate with the same y and z values as a given coordinate but that is located at the layout’s western border.
- Parameter
c
: Coordinate whose border counterpart is desired.
- Returns:
The western border equivalent of c.
- Parameter
- x(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout) int
Returns the layout’s x-dimension, i.e., returns the biggest x-value that still belongs to the layout.
- Returns:
x-dimension.
- y(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout) int
Returns the layout’s y-dimension, i.e., returns the biggest y-value that still belongs to the layout.
- Returns:
y-dimension.
- z(self: mnt.pyfiction.pyfiction.shifted_cartesian_layout) int
Returns the layout’s z-dimension, i.e., returns the biggest z-value that still belongs to the layout.
- Returns:
z-dimension.