Skip to main content

Functions for 3D coordinate transformations

Project description

Code to convert between various geometric transformations.

  • Composing rotations / zooms / shears / translations into affine matrix;

  • Decomposing affine matrix into rotations / zooms / shears / translations;

  • Conversions between different representations of rotations, including:

    • 3x3 Rotation matrices;

    • Euler angles;

    • quaternions.

We have tried to document the algorithms carefully and write clear code in the hope that this code can be a teaching reference. We document the math behind some of the algorithms using sympy in transforms3d/derivations. We would be very pleased if y’all would like to add your own algorithms and derivations - please get a copy of the code from https://github.com/matthew-brett/transforms3d and get on down, algorithmically. Feel free to use the github issue tracker and pull request system to ask for advice and support.

Documentation

Documentation for latest released version at http://matthew-brett.github.io/transforms3d

Code

See https://github.com/matthew-brett/transforms3d

Released under the BSD two-clause license - see the file LICENSE in the source distribution.

Much of the code comes from transformations.py by Christoph Gohlke, also released under the BSD license.

We use Github actions to test the code automatically under Pythons 3.7 through 3.10.

We depend on numpy >= 1.15. You may be able to make it work on an earlier numpy if you really needed that.

The latest released version is at https://pypi.python.org/pypi/transforms3d

Support

Please put up issues on the transforms3d issue tracker.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transforms3d-0.4.1.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

transforms3d-0.4.1-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file transforms3d-0.4.1.tar.gz.

File metadata

  • Download URL: transforms3d-0.4.1.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.13

File hashes

Hashes for transforms3d-0.4.1.tar.gz
Algorithm Hash digest
SHA256 31c755266a0b0a222488b8d039f6f325cf486c52728c03e307ce047b2fad1179
MD5 fa8f6179784f465a21333961e1bdf3ab
BLAKE2b-256 bd65915840e94f946e878f3081da6f42c313162d23118bc2e81d7206600eaf00

See more details on using hashes here.

File details

Details for the file transforms3d-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: transforms3d-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for transforms3d-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aea08776c1c915c8b424418994202aced8e46301c375ce63423d14f1d0045aa7
MD5 c68b302e43c1b364a26d704b51669ed0
BLAKE2b-256 569465e0fe886c6d5c86f4a0552dc98f49f9ed9d77c4d925a0af97d48a8226de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page