mini_arcade_core.spaces.geometry.bounds¶
2D geometry data structures.
Classes¶
Simple 2D position. |
|
Simple 2D size. |
|
Axis-aligned rectangular bounds in world space. |
Module Contents¶
- class mini_arcade_core.spaces.geometry.bounds.Position2D[source]¶
Simple 2D position.
- Variables:
(float) (y) – X coordinate.
(float) – Y coordinate.
- x: float¶
- y: float¶
- class mini_arcade_core.spaces.geometry.bounds.Size2D[source]¶
Simple 2D size.
- Variables:
(int) (height) – Width.
(int) – Height.
- width: int¶
- height: int¶
- class mini_arcade_core.spaces.geometry.bounds.Bounds2D[source]¶
Axis-aligned rectangular bounds in world space. (left, top) .. (right, bottom)
- Variables:
(float) (bottom) – Left boundary.
(float) – Top boundary.
(float) – Right boundary.
(float) – Bottom boundary.
- left: float¶
- top: float¶
- right: float¶
- bottom: float¶