Git Product home page Git Product logo

quaternions.jl's Introduction

Quaternions.jl

A Julia module with quaternion, octonion and dual-quaternion functionality

Build Status Coverage Status

Quaternions are best known for their suitability as representations of 3D rotational orientation. They can also be viewed as an extension of complex numbers.

Implemented functions are:

+-*/^
real  
imag  (a vector)  
conj  
abs  
abs2  
exp  
log  
normalize  
normalizea  (return normalized quaternion and absolute value as a pair)  
angleaxis  (taken as an orientation, return the angle and axis (3 vector) as a tuple)  
angle  
axis  
exp  
log  
sin  
cos  
sqrt  
linpol  (interpolate between 2 normalized quaternions)  

Dual quaternions are an extension, combining quaternions with dual numbers. On top of just orientation, they can represent all rigid transformations.

There are two conjugation concepts here

conj  (quaternion conjugation)  
dconj (dual conjugation)

further implemented here:

Q0  (the 'real' quaternion)  
Qe  ( the 'dual' part)  
+-*/^  
abs  
abs2  
normalize  
normalizea  
angleaxis  
angle  
axis  
exp  
log  
sqrt  

Octonions form the logical next step on the Complex-Quaternion path. They play a role, for instance, in the mathematical foundation of String theory.

+-*/^
real  
imag  (a vector)  
conj  
abs  
abs2  
exp  
log  
normalize  
normalizea  (return normalized octonion and absolute value as a tuple)  
exp  
log  
sqrt  

quaternions.jl's People

Contributors

adambrewster avatar andreasnoack avatar jw3126 avatar keesvp avatar kristofferc avatar rdeits avatar simondanisch avatar stuinzuri avatar timholy avatar westleyargentum avatar

Watchers

 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.