|
Blender V4.3
|
#include <BLI_math_angle_types.hh>
Public Member Functions | |
| AngleRadianBase ()=default | |
| AngleRadianBase (const T &radian) | |
| AngleRadianBase (const T &cos, const T &sin) | |
| operator T () const | |
| T | degree () const |
| T | radian () const |
| AngleRadianBase | wrapped () const |
| AngleRadianBase | wrapped_around (const AngleRadianBase &reference) const |
| AngleRadianBase & | operator+= (const AngleRadianBase &b) |
| AngleRadianBase & | operator-= (const AngleRadianBase &b) |
| AngleRadianBase & | operator*= (const AngleRadianBase &b) |
| AngleRadianBase & | operator/= (const AngleRadianBase &b) |
Static Public Member Functions | |
| static AngleRadianBase | identity () |
| static AngleRadianBase | from_degree (const T °rees) |
Friends | |
| AngleRadianBase | operator+ (const AngleRadianBase &a, const AngleRadianBase &b) |
| AngleRadianBase | operator- (const AngleRadianBase &a, const AngleRadianBase &b) |
| AngleRadianBase | operator* (const AngleRadianBase &a, const AngleRadianBase &b) |
| AngleRadianBase | operator/ (const AngleRadianBase &a, const AngleRadianBase &b) |
| AngleRadianBase | operator- (const AngleRadianBase &a) |
| std::ostream & | operator<< (std::ostream &stream, const AngleRadianBase &rot) |
A blender::math::AngleRadianBase<T> is a typical radian angle.
1 * sizeof(T)cos(), sin(), tan(), AngleRadian(cos, sin) Definition at line 34 of file BLI_math_angle_types.hh.
|
default |
|
inline |
Definition at line 41 of file BLI_math_angle_types.hh.
|
inlineexplicit |
Definition at line 42 of file BLI_math_angle_types.hh.
|
inline |
Definition at line 65 of file BLI_math_angle_types.hh.
References blender::math::numbers::pi, and T.
Referenced by blender::ed::space_node::create_inspection_string_for_generic_value().
|
inlinestatic |
Definition at line 51 of file BLI_math_angle_types.hh.
References blender::math::numbers::pi, and T.
Referenced by blender::ed::mesh::MESH_OT_set_sharpness_by_angle(), blender::tests::TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
|
inlinestatic |
Static functions.
Definition at line 46 of file BLI_math_angle_types.hh.
Referenced by blender::math::EulerXYZBase< T >::identity().
|
inlineexplicit |
Conversions.
Definition at line 59 of file BLI_math_angle_types.hh.
|
inline |
Definition at line 136 of file BLI_math_angle_types.hh.
References b.
|
inline |
Definition at line 124 of file BLI_math_angle_types.hh.
References b.
|
inline |
Definition at line 130 of file BLI_math_angle_types.hh.
References b.
|
inline |
Definition at line 142 of file BLI_math_angle_types.hh.
References b.
|
inline |
Definition at line 71 of file BLI_math_angle_types.hh.
Referenced by blender::ed::mesh::MESH_OT_set_sharpness_by_angle(), blender::tests::TEST(), blender::math::EulerXYZBase< T >::wrapped(), and blender::math::EulerXYZBase< T >::wrapped_around().
|
inline |
Methods. Return the angle wrapped inside [-pi..pi] interval. Basically (angle + pi) % 2pi - pi.
Definition at line 81 of file BLI_math_angle_types.hh.
References blender::math::mod_periodic(), blender::math::numbers::pi, and T.
Referenced by blender::math::EulerXYZBase< T >::wrapped(), and blender::math::AngleRadianBase< T >::wrapped_around().
|
inline |
Return the angle wrapped inside [-pi..pi] interval around a reference . Basically (angle - reference + pi) % 2pi - pi + reference . This means the interpolation between the returned value and reference will always take the shortest path.
Definition at line 92 of file BLI_math_angle_types.hh.
References blender::math::AngleRadianBase< T >::wrapped().
Referenced by blender::math::EulerXYZBase< T >::wrapped_around().
|
friend |
Definition at line 109 of file BLI_math_angle_types.hh.
|
friend |
Operators.
Definition at line 99 of file BLI_math_angle_types.hh.
|
friend |
Definition at line 119 of file BLI_math_angle_types.hh.
|
friend |
Definition at line 104 of file BLI_math_angle_types.hh.
|
friend |
Definition at line 114 of file BLI_math_angle_types.hh.
|
friend |
Definition at line 150 of file BLI_math_angle_types.hh.