Bounds and positions
Project description
Bounden
Bounden describes points and regions within n-dimensional volumes.
Points
The Point
class describes a point within an n-dimensional volume.
The class's generic type describes the coordinate type of each dimension, and must be specified as a tuple:
from bounden import Point
in_line = Point[tuple[int]]((0,))
in_rect = Point[tuple[int, int]]((0, 0))
in_cube = Point[tuple[int, int, int]]((0, 0, 0))
The position is read from the position
property:
from bounden import Point
point = Point[tuple[int, int, int]]((1, 2, 3))
print(point.position)
# (1, 2, 3)
Support
Please raise bugs, feature requests and ask questions at cariad/bounden/issues.
The Project
Bounden is © 2022 Cariad Eccleston and released under the MIT License at cariad/nvalues.
The Author
Hello! 👋 I'm Cariad Eccleston and I'm a freelance backend and infrastructure engineer in the United Kingdom. You can find me at cariad.earth, github/cariad, linkedin/cariad and on Mastodon at @cariad@tech.lgbt.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for bounden-1.0.0b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09bf8b3e3ac2cda7a8882c7e1259bbfff80e82eccdc6cf7040759a61c0bc6b86 |
|
MD5 | 4ee727080d12dedef785137a2b7505f6 |
|
BLAKE2b-256 | c8165410159b2e26ece05c0b69e61e50ea8339f3f0fccfcee706e2352dd55ab5 |