Skip to content

openlunar/pyquat

This branch is 2 commits behind translunar/pyquat:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

503b732 · Jan 6, 2022

History

60 Commits
Apr 9, 2020
Apr 9, 2020
Dec 14, 2017
Dec 14, 2017
Jan 6, 2022
Jan 22, 2018
Jan 13, 2016
Jan 6, 2022
Dec 14, 2017
Oct 31, 2017
Jan 6, 2022

Repository files navigation

pyquat

pyquat is a Python C extension providing quaternions and functions relating to simulation of attitudes and rotations.

Build Status

Installation

python setup.py build
python setup.py install

Usage

from pyquat import Quat
import pyquat

q = pyquat.identity()

q4 = Quat(0.73029674334022143, 0.54772255750516607, 0.36514837167011072, 0.18257418583505536)
q2 = q * q4.conjugated()
q2.normalize()
q2.conjugate()

transform = q2.to_matrix()

vec = q2.to_rotation_vector()

License

Copyright 2016--2022 Juno Woods, Ph.D., and Translunar LLC.

See LICENSE.txt.

Packages

No packages published

Languages

  • Python 61.5%
  • C 38.0%
  • Makefile 0.5%