Libary for creating spatial space hierarchies
Project description
spatial-transform
Libary for creating spatial space hierarchies, like game engines and renderes would do, to have diffrent rotations, scale and positions which can also rely on their parent.
This package was created for my master thesis and only aims about integrety but not performance. For the most of the calculations the package PyGLM is used.
Features
- Transforms as stackable in form of trees.
- Transforms reactor to attaching and detaching.
- Support Translation, Rotation and Scale.
- Includes a static class for euler angle conversions.
- Space is defined as: Y+ is Up and right handed like openGL
Examples
Create and stack transforms
import spatial-transform as st
root = st.Transform('root')
child1 = st.Transform('child1')
root.append(child1)
Change properties
import spatial-transform as st
root = st.Transform('root')
root.Position = (1,2,3)
root.SetEuler(0, 45, 0)
root.Scale = (10, 10, 10)
Convert between spaced
import spatial-transform as st
root = st.Transform('root')
root.pointToWorld(1,1,1)
root.directionToLocal(1,1,1)
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
Close
Hashes for spatial_transform-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 959313485d4a19c5fbecd321abc6011813336c8e148de635b6b30b9ea550e3a4 |
|
MD5 | 6c374c2ad51f9488f46836edadab30e2 |
|
BLAKE2b-256 | 60cd4b86794369c42c9a37b082b51f0db7ab0606835c0ac7e506564a3a0fecb2 |