Rasterfarm-SDK
Loading...
Searching...
No Matches
quaternion.h File Reference
#include "utils.h"
#include "vector.h"

Classes

class  Quaternion< T >
 

Typedefs

using QuaternionDouble = Quaternion< double >
 
using QuaternionFloat = Quaternion< float >
 

Functions

template<typename T >
Quaternion< TrotationTo (const Vector< T, 3 > &start, const Vector< T, 3 > &dest)
 
template<typename T >
const Vector< T, 4 > quaternionTo (const Quaternion< T > &q)
 
template<typename T >
const Quaternion< TrotationTo (T angle, const Vector< T, 3 > &v)
 

Typedef Documentation

◆ QuaternionDouble

using QuaternionDouble = Quaternion< double >

◆ QuaternionFloat

using QuaternionFloat = Quaternion< float >

Function Documentation

◆ quaternionTo()

template<typename T >
const Vector< T, 4 > quaternionTo ( const Quaternion< T > & q)

◆ rotationTo() [1/2]

template<typename T >
Quaternion< T > rotationTo ( const Vector< T, 3 > & start,
const Vector< T, 3 > & dest )

◆ rotationTo() [2/2]

template<typename T >
const Quaternion< T > rotationTo ( T angle,
const Vector< T, 3 > & v )