MarDiehl / rotations_fortran

Convert rotation representations (Fortran version)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert Rotation Representations (Fortran)

Fortran version of a 3D rotations conversion library. Based on marcdegraef/3Drotations.

Implemented representations

  • Unit quaternion
  • Euler angles (Bunge convention)
  • Rotation matrix
  • Axis angle representation
  • Rodrigues-Frank vector
  • Homochoric vector
  • Cubochoric vector

Getting started

export FC=gfortran # or ifort or pgfortran
mkdir build
cd build
cmake .. -DCMAKE_Fortran_COMPILER=$FC
make
./src/test_rotations

Prerequisites

  • Fortran compiler
    • GNU, version 8.0 or newer (gfortran)
    • Intel, version 18.0 or newer (ifort)
    • PGI, not tested (pgfortran)
  • cmake, version 3.10 or newer
  • LAPACK library in standard location

License

GNU General Public License v3

Issues

  • The tests for Euler angles fail, but this is because comparing Euler angles is difficult.
  • Some functions have no unit tests.

About

Convert rotation representations (Fortran version)

License:GNU General Public License v3.0


Languages

Language:Fortran 77.2%Language:CMake 22.8%