Code Monkey home page Code Monkey logo

geometry's Introduction

Geometry

A library for working with points, rotations and coordinate transformations in 3D space.

This library depends on BasicLinearAlgebra (available in the library manager) so be sure to install that too

Geometry defines three classes to represent 3D coordinates, rotation matrices and transformation matrices. All three classes inherit from the Matrix class so they're all able to do basic matrix arithmetic. Most importantly, multiplication between Points and Rotations or Rotations and Rotations allows those objects to be rotated in 3D. There's also a few useful methods for converting between rotation matrices and Euler angles as well as finding the cross product of two vectors and so on.

These kinds of calculations are really helpful for projects involving 3D motion like robot arm kinematics or working with gyro sensor data. Enjoy!

To get started, just go through the HowToUse sketch in the examples folder; that'll explain everything that most users will need to know to work with the library. There's also the KinematicChain example which uses the library to calculate the forward and inverse kinematics for an arbitrary length kinematic chain. The inverse kinematics are found using gradient descent with a jacobian transpose so there's room for improvement. Feel free to subclass KinematicChain and override that method with something better!

geometry's People

Contributors

tomstewart89 avatar

Watchers

Antony Ingram avatar

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.