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 coordinates are read from the value
property:
from bounden import Point
point = Point[tuple[int, int, int]]((1, 2, 3))
print(point.value)
# (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.0a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13f3f0cf8e0c4c7888d8695b3a1e87c6100139b144d1dc48574a57b329fc02cc |
|
MD5 | 2aaf3bc2315a371185c6bc75362d9ef1 |
|
BLAKE2b-256 | 0ba0ede380e067200e0f92cc7367ce6f8e4741d1805fb167369f838273a9a38a |