OpenMD 3.2
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
Quaternion.hpp File Reference
#include <config.h>
#include <cmath>
#include "math/SquareMatrix.hpp"
#include "math/Vector3.hpp"
#include "utils/Constants.hpp"

Go to the source code of this file.

Classes

class  OpenMD::Quaternion< Real >
 Quaternion is a sort of a higher-level complex number. More...

Namespaces

namespace  OpenMD
 This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.

Macros

#define ISZERO(a, eps)

Typedefs

using OpenMD::Quat4d = Quaternion<RealType>

Functions

template<typename Real, unsigned int Dim>
Quaternion< Real > OpenMD::operator* (const Quaternion< Real > &q, Real s)
 Returns the vaule of scalar multiplication of this quaterion q (q * s).
template<typename Real, unsigned int Dim>
Quaternion< Real > OpenMD::operator* (const Real &s, const Quaternion< Real > &q)
 Returns the vaule of scalar multiplication of this quaterion q (q * s).
template<typename Real>
Quaternion< Real > OpenMD::operator* (const Quaternion< Real > &q1, const Quaternion< Real > &q2)
 Returns the multiplication of two quaternion.
template<typename Real>
Quaternion< Real > OpenMD::operator/ (Quaternion< Real > &q1, Quaternion< Real > &q2)
 Returns the division of two quaternion.
template<typename Real>
Quaternion< Real > OpenMD::operator/ (const Real &s, Quaternion< Real > &q)
 Returns the value of the division of a scalar by a quaternion.
template<class T>
bool OpenMD::operator== (const Quaternion< T > &lhs, const Quaternion< T > &rhs)

Variables

const RealType tiny = 1.0e-6

Detailed Description

Author
Teng Lin
Date
10/11/2004
Version
1.0

Definition in file Quaternion.hpp.

Macro Definition Documentation

◆ ISZERO

#define ISZERO ( a,
eps )
Value:
((a) > -(eps) && (a) < (eps))

Definition at line 65 of file Quaternion.hpp.

Variable Documentation

◆ tiny

const RealType tiny = 1.0e-6

Definition at line 66 of file Quaternion.hpp.