coordax.coords.compose¶
- coordax.coords.compose(*coordinates: Coordinate) Coordinate[source]¶
Compose coordinates into a unified coordinate system.
- Parameters:
*coordinates – The coordinates to compose.
- Returns:
A single coordinate object representing the Cartesian product of the inputs.
Examples
>>> import coordax as cx >>> x = cx.SizedAxis('x', 2) >>> y = cx.SizedAxis('y', 3) >>> cx.coords.compose(x, y) CartesianProduct(coordinates=(coordax.SizedAxis('x', size=2), coordax.SizedAxis('y', size=3)))