Giter Site home page Giter Site logo

math3d's Introduction

math3d

A simple to use Python math library for SE3 operations useful in computer vision, robotics, and AR/VR

This library draws heavy inspiration from OVR_Math.h within the Oculus PC SDK.

This library includes the basic building blocks of a vector3 (Vec3), a quaternion (Quat), and a rigid body transform (Transform) consisting of a vector3 and quaternion. In my experience, such a representation is expressive enough for all needs and relatively efficient.

These classes all have convenience functions to other representations. Specifically, rotations can also be represented by 3x3 matrices, euler angles, and axis + angle. Similarly, a rigid body transform can be represented as a 4x4 matrix.

For transforms, overloading the python multiplication operators allows for trivial chaining of operations:

T_A_B = Transform() # transform of B relative to A
T_B_C = Transform() # transform of C relative to B
T_A_C = T_A_B * T_B_C

C_p = Vec3() # point wrt to C
A_p = T_A_C * C_p

This is a continual pet project in development.

Recommended reading:

math3d's People

Contributors

dxyang avatar

Stargazers

Hyunwoo Ryu avatar

Watchers

 avatar

math3d's Issues

python3.10 - problem with collections

collections.Iterable have moved to collections.abc.Iterable therefore the following line is necessary in the code when importing math3d in python3.10:
collections.Iterable = collections.abc.Iterable

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.