Skip to main content

Python3 3D transformation library with object oriented API and MIT licensed

Project description

pipeline status coverage report

Object oriented transformation matrix library. m3d was originally developed as an MIT licenced API compatible replacement for pymath3d which is GPL, but is now developed independently. Development is happenig here: https://gitlab.com/kurant-open/m3d/

m3d uses some code from https://matthew-brett.github.io/transforms3d/ and its API is inspired by pymath3d API from Morten Lind https://gitlab.com/morlin/pymath3d.

Example use:

t = m3d.Transform()
t.orient.rotate_yb(1)
t2 = t.copy()
t2.pos.x = 1
v = t2.inverse() @ t @ m3d.Vector(1, 2, 3)
v.normalize()
v *= 1.2
o = m3d.Orientation.from_axis_angle(0, 0, 1)
v = o * v
o2 = m3d.Orientation.from_xy(m3d.Vector(1.1, 0.2, 0), m3d.Vector(0, 0, 1.1))
v = o2 * o.inverse() * v

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

m3d-1.1.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

m3d-1.1.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file m3d-1.1.1.tar.gz.

File metadata

  • Download URL: m3d-1.1.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for m3d-1.1.1.tar.gz
Algorithm Hash digest
SHA256 fee7db610467bb4f504546acf9bd517f65de458d30dddc5eb12f889e82bcd259
MD5 11752ded687a7935e6f93a70e7f7ac58
BLAKE2b-256 ffd38918c5487cb1f5e3640793481cf9daa066dd2ce70329c4ec38f0c1b14dd8

See more details on using hashes here.

File details

Details for the file m3d-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: m3d-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for m3d-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81bdf84533b4a572a89570df5bf6bf05bd017690bbe5f24b39b6f6cdf43f7ba3
MD5 aab0fc574d20fc3798ec4f00e5ee5738
BLAKE2b-256 b5ad0ae7ae95f7ca58bc494061c0a343673f199c507a717d67dc7f95eb0ec356

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