Class for working with quaternions.
More...
#include <SQuat.h>
Class for working with quaternions.
- Since
- 4.5.32
- See Also
- Representation `a`
coat::scripto::Quat::Quat |
( |
| ) |
|
|
inline |
Quat& coat::scripto::Quat::calcW |
( |
| ) |
|
|
inline |
Recalculates w
by current xyz
.
Quat coat::scripto::Quat::calcWCopy |
( |
| ) |
const |
|
inline |
Quat& coat::scripto::Quat::compress |
( |
| ) |
|
|
inline |
Set w
to 0.0. Change signs of x
, y
, z
if w
was less zero.
Quat coat::scripto::Quat::compressCopy |
( |
| ) |
const |
|
inline |
Quat& coat::scripto::Quat::conjugate |
( |
| ) |
|
|
inline |
Quat coat::scripto::Quat::conjugateCopy |
( |
| ) |
const |
|
inline |
float coat::scripto::Quat::dot |
( |
const Quat & |
b | ) |
const |
|
inline |
Quat& coat::scripto::Quat::exp |
( |
| ) |
|
|
inline |
Calculates an exponential.
References expCopy().
Quat coat::scripto::Quat::expCopy |
( |
| ) |
const |
|
inline |
Quat& coat::scripto::Quat::invert |
( |
| ) |
|
|
inline |
Quat coat::scripto::Quat::invertCopy |
( |
| ) |
const |
|
inline |
float coat::scripto::Quat::length |
( |
| ) |
const |
|
inline |
float coat::scripto::Quat::lengthSquared |
( |
| ) |
const |
|
inline |
Returns a squared Euclidean length.
float r = a.lengthSquared();
- See Also
- length()
Quat& coat::scripto::Quat::lerp |
( |
const Quat & |
b, |
|
|
float |
s |
|
) |
| |
|
inline |
Quat coat::scripto::Quat::lerpCopy |
( |
const Quat & |
b, |
|
|
float |
s |
|
) |
| const |
|
inline |
Quat& coat::scripto::Quat::ln |
( |
| ) |
|
|
inline |
Calculates a natural logarithm.
References lnCopy().
Quat coat::scripto::Quat::lnCopy |
( |
| ) |
const |
|
inline |
Quat& coat::scripto::Quat::normalize |
( |
| ) |
|
|
inline |
Quat coat::scripto::Quat::normalizeCopy |
( |
| ) |
const |
|
inline |
bool coat::scripto::Quat::normalized |
( |
| ) |
const |
|
inline |
Returns TRUE
then the quaternion is normalized.
- See Also
- normalized()
coat::scripto::Quat::operator Mat3 |
( |
| ) |
const |
coat::scripto::Quat::operator Mat4 |
( |
| ) |
const |
coat::scripto::Quat::operator std::string |
( |
| ) |
const |
Ability for converting Quat
to string
.
Quat& coat::scripto::Quat::operator() |
( |
int |
i, |
|
|
float |
v |
|
) |
| |
|
inline |
float coat::scripto::Quat::operator() |
( |
int |
i | ) |
const |
|
inline |
Getter like array.
float x = a[ 0 ];
float y = a[ 1 ];
float z = a[ 2 ];
float w = a[ 3 ];
Quat coat::scripto::Quat::operator- |
( |
| ) |
const |
|
inline |
bool coat::scripto::Quat::operator== |
( |
const Quat & |
b | ) |
const |
|
inline |
Comparison.
...
if (a ==
Quat( 5, 2, 1, 0 )) { ... }
Quat& coat::scripto::Quat::slerp |
( |
const Quat & |
b, |
|
|
float |
s |
|
) |
| |
|
inline |
Quat coat::scripto::Quat::slerpCopy |
( |
const Quat & |
b, |
|
|
float |
s |
|
) |
| const |
|
inline |
Quat& coat::scripto::Quat::w |
( |
const float & |
value | ) |
|
|
inline |
Setter for w
.
- See Also
- x( float ), y( float ), z(float )
float coat::scripto::Quat::w |
( |
| ) |
const |
|
inline |
Quat& coat::scripto::Quat::x |
( |
const float & |
value | ) |
|
|
inline |
Setter for x
.
a.x( 50 ).y( 20 ).z( 10 ).w( 1 );
- See Also
- y( float ), z( float ), w (float )
float coat::scripto::Quat::x |
( |
| ) |
const |
|
inline |
Quat& coat::scripto::Quat::y |
( |
const float & |
value | ) |
|
|
inline |
Setter for y
.
- See Also
- x( float ), z( float ), w(float )
float coat::scripto::Quat::y |
( |
| ) |
const |
|
inline |
Quat& coat::scripto::Quat::z |
( |
const float & |
value | ) |
|
|
inline |
Setter for z
.
- See Also
- x( float ), y( float ), w(float )
float coat::scripto::Quat::z |
( |
| ) |
const |
|
inline |
bool coat::scripto::Quat::zero |
( |
| ) |
const |
|
inline |
Returns TRUE
then the all values of the quaternion is zero.
The documentation for this class was generated from the following files:
- 3d-coat/3D-CoatV4/3D-Coat/Scripto/SQuat.h
- 3d-coat/3D-CoatV4/3D-Coat/Scripto/SQuat.cpp