|
Blender V4.3
|
#include <BLI_math_axis_angle_types.hh>
Public Types | |
| using | vec3_type = VecBase<T, 3> |
Public Member Functions | |
| AxisAngleBase ()=default | |
| const vec3_type & | axis () const |
| const AngleT & | angle () const |
Constructors | |
| AxisAngleBase (const AxisSigned axis, const AngleT &angle) | |
| AxisAngleBase (const vec3_type &axis, const AngleT &angle) | |
| AxisAngleBase (const vec3_type &from, const vec3_type &to) | |
Static Public Member Functions | |
| static AxisAngleBase | identity () |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const AxisAngleBase &rot) |
Definition at line 32 of file BLI_math_axis_angle_types.hh.
| using blender::math::AxisAngleBase< T, AngleT >::vec3_type = VecBase<T, 3> |
Definition at line 33 of file BLI_math_axis_angle_types.hh.
|
default |
| blender::math::AxisAngleBase< T, AngleT >::AxisAngleBase | ( | const AxisSigned | axis, |
| const AngleT & | angle ) |
Create a rotation from a basis axis and an angle.
Definition at line 33 of file BLI_math_axis_angle.hh.
References angle(), and blender::math::to_vector().
| blender::math::AxisAngleBase< T, AngleT >::AxisAngleBase | ( | const vec3_type & | axis, |
| const AngleT & | angle ) |
Create a rotation from an axis and an angle.
axis have to be normalized. Definition at line 25 of file BLI_math_axis_angle.hh.
References angle(), BLI_assert, and blender::math::is_unit_scale().
| blender::math::AxisAngleBase< T, AngleT >::AxisAngleBase | ( | const vec3_type & | from, |
| const vec3_type & | to ) |
Create a rotation from 2 normalized vectors.
from and to must be normalized. AxisAngleCartesian for faster conversion to other rotation. Definition at line 40 of file BLI_math_axis_angle.hh.
References BLI_assert, blender::math::cos(), blender::math::cross(), blender::math::is_unit_scale(), normalize(), blender::math::normalize_and_get_length(), blender::math::orthogonal(), blender::math::sin(), and T.
|
inline |
Definition at line 75 of file BLI_math_axis_angle_types.hh.
Referenced by blender::ed::sculpt_paint::brush_delta_update(), blender::nodes::node_fn_rotation_to_axis_angle_cc::QuaterniontoAxisAngleFunction::call(), blender::math::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::math::to_euler(), and blender::math::to_quaternion().
|
inline |
Methods.
Definition at line 70 of file BLI_math_axis_angle_types.hh.
Referenced by blender::ed::sculpt_paint::brush_delta_update(), blender::nodes::node_fn_rotation_to_axis_angle_cc::QuaterniontoAxisAngleFunction::call(), blender::math::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::math::to_axis_angle(), blender::math::to_euler(), and blender::math::to_quaternion().
|
inlinestatic |
Static functions.
Definition at line 63 of file BLI_math_axis_angle_types.hh.
|
friend |
Operators.
Definition at line 84 of file BLI_math_axis_angle_types.hh.