Class for working with Euler angles: pitch, yaw, roll.
More...
#include <SAngles.h>
|
| | Angles (float pitch, float yaw, float roll) |
| | Constructor for building angles (pitch, yaw, roll) = (0, 0, 0). More...
|
| |
| | operator Mat3 () const |
| | Ability for converting Angles to Mat3. More...
|
| |
| | operator Mat4 () const |
| | Ability for converting Angles to Mat4. More...
|
| |
| | operator Quat () const |
| | Ability for converting Angles to Quat. More...
|
| |
| | operator std::string () const |
| | Ability for converting Angles to string. More...
|
| |
| bool | operator== (const Angles &b) const |
| | Comparison. More...
|
| |
| Angles & | operator() (int i, float v) |
| | Setter like array.
[ 0 ] is pitch
[ 1 ] is yaw
[ 2 ] is roll
. More...
|
| |
| float | operator() (int i) const |
| | Getter like array. More...
|
| |
| Angles & | pitch (const float &v) |
| | Setter for pitch. More...
|
| |
| float | pitch () const |
| | Getter for pitch. More...
|
| |
| Angles & | yaw (const float &v) |
| | Setter for yaw. More...
|
| |
| float | yaw () const |
| | Getter for yaw. More...
|
| |
| Angles & | roll (const float &v) |
| | Setter for roll. More...
|
| |
| float | roll () const |
| | Getter for roll. More...
|
| |
| Angles | operator- () const |
| | Negation operator. More...
|
| |
| Angles & | clamp (const Angles &min, const Angles &max) |
| | Clamp values to diapason [min; max]. More...
|
| |
| Angles | clampCopy (const Angles &min, const Angles &max) const |
| |
| Angles & | lerp (const Angles &b, float s) |
| | Interpolates between angles, using linear interpolation. More...
|
| |
| Angles | lerpCopy (const Angles &b, float s) const |
| |
| Angles & | normalize180 () |
| | Normalize angles to 180 degree. More...
|
| |
| Angles | normalize180Copy () const |
| |
| Angles & | normalize360 () |
| | Normalize angles to 360 degree. More...
|
| |
| Angles | normalize360Copy () const |
| |
| Angles & | round () |
| | Round angles to integer. More...
|
| |
| Angles | roundCopy () const |
| |
| Vec3 | forward () const |
| | Extract a forward-vector. More...
|
| |
| Vec3 | right () const |
| | Extract a right-vector. More...
|
| |
| Vec3 | up () const |
| | Extract an up-vector. More...
|
| |
Class for working with Euler angles: pitch, yaw, roll.
- Since
- 4.5.32
| coat::scripto::Angles::Angles |
( |
float |
pitch, |
|
|
float |
yaw, |
|
|
float |
roll |
|
) |
| |
|
inline |
Constructor for building angles (pitch, yaw, roll) = (0, 0, 0).
Constructor by values.
References pitch(), and yaw().
Referenced by operator-().
Clamp values to diapason [min; max].
References clampCopy().
| Vec3 coat::scripto::Angles::forward |
( |
| ) |
const |
Extract a forward-vector.
| Angles& coat::scripto::Angles::lerp |
( |
const Angles & |
b, |
|
|
float |
s |
|
) |
| |
|
inline |
| Angles coat::scripto::Angles::lerpCopy |
( |
const Angles & |
b, |
|
|
float |
s |
|
) |
| const |
|
inline |
| Angles& coat::scripto::Angles::normalize180 |
( |
| ) |
|
|
inline |
Normalize angles to 180 degree.
| Angles coat::scripto::Angles::normalize180Copy |
( |
| ) |
const |
|
inline |
| Angles& coat::scripto::Angles::normalize360 |
( |
| ) |
|
|
inline |
Normalize angles to 360 degree.
| Angles coat::scripto::Angles::normalize360Copy |
( |
| ) |
const |
|
inline |
| coat::scripto::Angles::operator Mat3 |
( |
| ) |
const |
| coat::scripto::Angles::operator Mat4 |
( |
| ) |
const |
| coat::scripto::Angles::operator Quat |
( |
| ) |
const |
| coat::scripto::Angles::operator std::string |
( |
| ) |
const |
Ability for converting Angles to string.
| Angles& coat::scripto::Angles::operator() |
( |
int |
i, |
|
|
float |
v |
|
) |
| |
|
inline |
Setter like array.
[ 0 ] is pitch
[ 1 ] is yaw
[ 2 ] is roll
.
| float coat::scripto::Angles::operator() |
( |
int |
i | ) |
const |
|
inline |
| Angles coat::scripto::Angles::operator- |
( |
| ) |
const |
|
inline |
| bool coat::scripto::Angles::operator== |
( |
const Angles & |
b | ) |
const |
|
inline |
Comparison.
...
if (a ==
Angles( 5, 70, 80 )) { ... }
| Angles& coat::scripto::Angles::pitch |
( |
const float & |
v | ) |
|
|
inline |
Setter for pitch.
a.pitch( 50 ).yaw( 75 ).roll( 85 );
- See Also
- yaw( float ), roll( float )
| float coat::scripto::Angles::pitch |
( |
| ) |
const |
|
inline |
| Vec3 coat::scripto::Angles::right |
( |
| ) |
const |
| Angles& coat::scripto::Angles::roll |
( |
const float & |
v | ) |
|
|
inline |
Setter for roll.
- See Also
- pitch( float ), yaw( float )
| float coat::scripto::Angles::roll |
( |
| ) |
const |
|
inline |
| Angles& coat::scripto::Angles::round |
( |
| ) |
|
|
inline |
| Angles coat::scripto::Angles::roundCopy |
( |
| ) |
const |
|
inline |
| Vec3 coat::scripto::Angles::up |
( |
| ) |
const |
| Angles& coat::scripto::Angles::yaw |
( |
const float & |
v | ) |
|
|
inline |
Setter for yaw.
- See Also
- pitch( float ), roll( float )
| float coat::scripto::Angles::yaw |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files:
- 3d-coat/3D-CoatV4/3D-Coat/Scripto/SAngles.h
- 3d-coat/3D-CoatV4/3D-Coat/Scripto/SAngles.cpp