Skip to content

quatd

Public Functions

Name
quatd()
quatd(const double angle, vec3d v)
quatd(vec3d v1, vec3d v2)
quatd(const double qx, const double qy, const double qz, const double qw =1.0)
bool operator!=(const quatd & q)
quatd operator-()
quatd operator+(const quatd & q) const
quatd operator-(const quatd & q) const
quatd & operator+=(const quatd & q)
quatd & operator-=(const quatd & q)
quatd operator*(const quatd & q) const
quatd & operator*=(const quatd & q)
quatd operator*(const double a) const
quatd operator/(const double a) const
quatd & operator/=(const double a)
quatd Conjugate() const
double Norm() const
void MakeUnit()
quatd Inverse() const
double DotProduct(const quatd & q) const
vec3d GetVector() const
double GetAngle() const
void RotateVector(vec3d & v) const
vec3d operator*(const vec3d & r)
mat3d operator*(mat3d m)
void RotateVectorP(double * v, double * r) const
double dot(quatd & q1, quatd & q2)
quatd lerp(quatd & q1, quatd & q2, double t)
quatd slerp(quatd & q1, quatd & q2, double t)

Public Attributes

Name
double x
double y
double z
double w

Public Functions Documentation

function quatd

inline quatd()

function quatd

inline quatd(
    const double angle,
    vec3d v
)

function quatd

inline quatd(
    vec3d v1,
    vec3d v2
)

function quatd

inline quatd(
    const double qx,
    const double qy,
    const double qz,
    const double qw =1.0
)

function operator!=

inline bool operator!=(
    const quatd & q
)

function operator-

inline quatd operator-()

function operator+

inline quatd operator+(
    const quatd & q
) const

function operator-

inline quatd operator-(
    const quatd & q
) const

function operator+=

inline quatd & operator+=(
    const quatd & q
)

function operator-=

inline quatd & operator-=(
    const quatd & q
)

function operator*

inline quatd operator*(
    const quatd & q
) const

function operator*=

inline quatd & operator*=(
    const quatd & q
)

function operator*

inline quatd operator*(
    const double a
) const

function operator/

inline quatd operator/(
    const double a
) const

function operator/=

inline quatd & operator/=(
    const double a
)

function Conjugate

inline quatd Conjugate() const

function Norm

inline double Norm() const

function MakeUnit

inline void MakeUnit()

function Inverse

inline quatd Inverse() const

function DotProduct

inline double DotProduct(
    const quatd & q
) const

function GetVector

inline vec3d GetVector() const

function GetAngle

inline double GetAngle() const

function RotateVector

inline void RotateVector(
    vec3d & v
) const

function operator*

inline vec3d operator*(
    const vec3d & r
)

function operator*

inline mat3d operator*(
    mat3d m
)

function RotateVectorP

inline void RotateVectorP(
    double * v,
    double * r
) const

function dot

static inline double dot(
    quatd & q1,
    quatd & q2
)

function lerp

static inline quatd lerp(
    quatd & q1,
    quatd & q2,
    double t
)

function slerp

static quatd slerp(
    quatd & q1,
    quatd & q2,
    double t
)

Public Attributes Documentation

variable x

double x;

variable y

double y;

variable z

double z;

variable w

double w;

Updated on 2024-07-14 at 17:07:25 +0000