A library for working with 3D geometry.
Project description
geometry
Tools for handling 3D geometry, mostly just adds a nice interface to various geometric enterties. Each geometric entity can also be a vector of geometric entities. Each entity wraps a numpy array with the relevant number of columns labelled according to the cols class property and rows equal to the number of elements in the vector. Attribute access to each column is available and returns a numpy array.
Where operations are supported between geometric types the size of the output is inferred based on the length of the inputs. Where the two vectors of entities are of the same length, elementwise operations are performed. Where one vector is length one and the other is greater than one then the operation will be performed on every element of the longer vector.
Magic methods are used extensively and the function of operators are logical for each type. If unsure what the logical option is then check the code where it should be pretty clear.
Many convenience methods and constructors are available. Documentation is limited but if you need something it has probably already been written so check the code first.
Some examples are available here: https://pfcdocumentation.readthedocs.io/pyflightcoach/geometry.html
now available on pypi:
pip install pfc-geometry
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 Distribution
Built Distribution
File details
Details for the file pfc_geometry-0.2.13.tar.gz
.
File metadata
- Download URL: pfc_geometry-0.2.13.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86fa4966d5e95f28dde75c7f39594ca14e4f3146d53bd9a8ccfbc0db3f5e424d |
|
MD5 | 7afb52234fed0c919e890f406608515a |
|
BLAKE2b-256 | 32fb496a3e54f846b296d3e52a7b7249e21469ac00209688687378c1ce55e35b |
File details
Details for the file pfc_geometry-0.2.13-py3-none-any.whl
.
File metadata
- Download URL: pfc_geometry-0.2.13-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29747fa647b4d72b67bf5d0a90fb0eac2bc973013da329518df1a554a293c2ea |
|
MD5 | 4792c841c8f7e03986821fb0543c83d1 |
|
BLAKE2b-256 | fe2b38166979e43c98b7b72c7c16d86e6994087a0e924a8f11f772aa2d1f09e6 |