|
Blender V4.3
|
#include <BLI_math_euler_types.hh>
Inherits blender::math::EulerBase< T >.
Public Types | |
| using | AngleT = AngleRadianBase<T> |
Public Types inherited from blender::math::EulerBase< T > | |
| using | AngleT = AngleRadianBase<T> |
Public Member Functions | |
| EulerXYZBase ()=default | |
| template<typename AngleU > | |
| EulerXYZBase (const VecBase< AngleU, 3 > &vec) | |
| EulerXYZBase (const AngleT &x, const AngleT &y, const AngleT &z) | |
| EulerXYZBase (const Axis axis, const AngleT &angle) | |
EulerXYZ | |
| EulerXYZBase | wrapped () const |
| EulerXYZBase | wrapped_around (const EulerXYZBase &reference) const |
Public Member Functions inherited from blender::math::EulerBase< T > | |
| operator VecBase< AngleT, 3 > () const | |
| operator VecBase< T, 3 > () const | |
| VecBase< AngleT, 3 > & | xyz () |
| const VecBase< AngleT, 3 > & | xyz () const |
| const AngleT & | x () const |
| const AngleT & | y () const |
| const AngleT & | z () const |
| AngleT & | x () |
| AngleT & | y () |
| AngleT & | z () |
Static Public Member Functions | |
| static EulerXYZBase | identity () |
Friends | |
| EulerXYZBase | operator- (const EulerXYZBase &a) |
| std::ostream & | operator<< (std::ostream &stream, const EulerXYZBase &rot) |
Additional Inherited Members | |
Protected Member Functions inherited from blender::math::EulerBase< T > | |
| EulerBase ()=default | |
| EulerBase (const AngleT &x, const AngleT &y, const AngleT &z) | |
| EulerBase (const VecBase< AngleT, 3 > &vec) | |
| EulerBase (const VecBase< T, 3 > &vec) | |
Protected Attributes inherited from blender::math::EulerBase< T > | |
| VecBase< AngleT, 3 > | xyz_ |
Definition at line 136 of file BLI_math_euler_types.hh.
| using blender::math::EulerXYZBase< T >::AngleT = AngleRadianBase<T> |
Definition at line 137 of file BLI_math_euler_types.hh.
|
default |
|
inline |
Create an euler x,y,z rotation from a triple of radian angle.
Definition at line 145 of file BLI_math_euler_types.hh.
|
inline |
Definition at line 147 of file BLI_math_euler_types.hh.
|
inline |
Create a rotation from an basis axis and an angle. This sets a single component of the euler triple, the others are left to 0.
Definition at line 153 of file BLI_math_euler_types.hh.
References angle(), blender::math::EulerXYZBase< T >::identity(), and blender::math::EulerBase< T >::xyz_.
|
inlinestatic |
Static functions.
Definition at line 161 of file BLI_math_euler_types.hh.
References blender::math::AngleRadianBase< T >::identity().
Referenced by blender::math::EulerXYZBase< T >::EulerXYZBase().
| EulerXYZBase< T > blender::math::EulerXYZBase< T >::wrapped | ( | ) | const |
Methods. Return this euler orientation but with angles wrapped inside [-pi..pi] range.
Definition at line 25 of file BLI_math_euler.hh.
References blender::math::AngleRadianBase< T >::radian(), result, and blender::math::AngleRadianBase< T >::wrapped().
| EulerXYZBase< T > blender::math::EulerXYZBase< T >::wrapped_around | ( | const EulerXYZBase< T > & | reference | ) | const |
Return this euler orientation but wrapped around reference.
This means the interpolation between the returned value and reference will always take the shortest path. The angle between them will not be more than pi.
Definition at line 35 of file BLI_math_euler.hh.
References blender::math::AngleRadianBase< T >::radian(), result, and blender::math::AngleRadianBase< T >::wrapped_around().
Referenced by blender::math::tests::TEST(), and blender::math::to_nearest_euler().
|
friend |
Operators.
Definition at line 185 of file BLI_math_euler_types.hh.
|
friend |
Definition at line 192 of file BLI_math_euler_types.hh.