scsl 1.0.1
Shimmering Clarity Standard Library
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
Quaternion.h File Reference

Quaternion implementation suitable for navigation in R3. More...

#include <cassert>
#include <cmath>
#include <initializer_list>
#include <iostream>
#include <ostream>
#include <scmp/Math.h>
#include <scmp/geom/Vector.h>
Include dependency graph for Quaternion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  scmp::geom::Quaternion< T >
 Quaternions provide a representation of Orientation and rotations in three dimensions. More...
 

Namespaces

namespace  scmp
 Shimmering Clarity Math & Physics toolkit.
 
namespace  scmp::geom
 Geometry-related code.
 

Typedefs

typedef Quaternion< floatscmp::geom::Quaternionf
 Type alias for a float Quaternion.
 
typedef Quaternion< doublescmp::geom::Quaterniond
 Type alias for a double Quaternion.
 

Functions

Quaternionf scmp::geom::MakeQuaternion (Vector3F axis, float angle)
 Convenience Quaternion construction function.
 
Quaterniond scmp::geom::MakeQuaternion (Vector3D axis, double angle)
 Convience Quaternion construction function.
 
template<typename T >
Quaternion< T > scmp::geom::MakeQuaternion (Vector< T, 3 > axis, T angle)
 Convience Quaternion construction function.
 
Quaternionf scmp::geom::FloatQuaternionFromEuler (Vector3F euler)
 COnstruct a Quaternion from Euler angles.
 
Quaterniond scmp::geom::DoubleQuaternionFromEuler (Vector3D euler)
 COnstruct a Quaternion from Euler angles.
 
template<typename T >
Quaternion< Tscmp::geom::LERP (Quaternion< T > p, Quaternion< T > q, T t)
 Linear interpolation for two Quaternions.
 
template<typename T >
Quaternion< Tscmp::geom::ShortestSLERP (Quaternion< T > p, Quaternion< T > q, T t)
 Shortest distance spherical linear interpolation.
 
void scmp::geom::QuaternionSelfTest ()
 Internal consistency check.
 

Detailed Description

Quaternion implementation suitable for navigation in R3.

Author
K. Isom kyle@.nosp@m.imap.nosp@m..cc
Date
2019-08-05

Copyright 2019 K. Isom kyle@.nosp@m.imap.nosp@m..cc

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all /// copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.