MCL
A C++ library mirroring some of the most common Matlab functions.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
mcl::Quaternion Class Reference

#include <quaternion.h>

Public Member Functions

 Quaternion (const Real w, const Real x, const Real y, const Real z) noexcept
 
Real w () const noexcept
 
Real x () const noexcept
 
Real y () const noexcept
 
Real z () const noexcept
 

Static Public Member Functions

static Quaternion Identity ()
 
static bool Test ()
 

Detailed Description

Quaternion class

Constructor & Destructor Documentation

mcl::Quaternion::Quaternion ( const Real  w,
const Real  x,
const Real  y,
const Real  z 
)
inlinenoexcept

Constructs a quaternion, with the first element being the scalar component and the following three forming the vector component

Member Function Documentation

Quaternion mcl::Quaternion::Identity ( )
static

Constructs a quaternion that is neutral to rotations, i.e. a multiplicative identity quaternion

bool mcl::Quaternion::Test ( )
static
Real mcl::Quaternion::w ( ) const
inlinenoexcept
Real mcl::Quaternion::x ( ) const
inlinenoexcept
Real mcl::Quaternion::y ( ) const
inlinenoexcept
Real mcl::Quaternion::z ( ) const
inlinenoexcept

The documentation for this class was generated from the following files: