Unit aware calculation of geometrical primitives' area, volumes, etc.
Project description
Ammonite: Geometry calculation cheatsheet
Unit aware calculation of geometrical primitives' area, volumes, etc. It is base on pint for a seamless unit management and easy conversion.
This package is at an early stage of development, it currently only include
-
3D:
- Box
- Cube
- Sphere
-
2D:
- Rectangle
- Square
- Circle
Usage
from ammonite import ureg
from ammonite.Object3D import Sphere
my_sphere = Sphere(radius=3 * ureg.meter)
print(my_sphere.volume)
# 113.09733552923254 meter ** 3
print(my_sphere.area)
# 113.09733552923255 meter ** 2
Contributions
Any comments to report a bug, improve this package, make it follow best practices which I might not know of or improve its automation are welcome.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ammonite-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ammonite-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8c07af13c23d913bf7ade9059f3cbc29bc8e593ba6f08633a5f19095f537691
|
|
| MD5 |
2e5364b54630c8962ad921ffdd642b24
|
|
| BLAKE2b-256 |
0101966ba7e950107d94a7a8f7b12429a2ea8e9c786b5dc3d28e6598f87f31ef
|