|
Blender V5.3
|
#include <ED_anim_transformable.hh>
Public Member Functions | |
| Rotation | converted_to_mode (eRotationModes mode, const Rotation *reference_euler=nullptr) const |
| void | mirror () |
Public Attributes | |
| TransformFloats | values |
| eRotationModes | mode |
Describes a rotation in a specific mode and can be used to convert into other modes.
Definition at line 60 of file ED_anim_transformable.hh.
| Rotation blender::ed::Rotation::converted_to_mode | ( | eRotationModes | mode, |
| const Rotation * | reference_euler = nullptr ) const |
Returns a copy of the rotation in the given mode.
| reference_euler | Only used when converting to a euler rotation. The given Rotation has to be of type euler too. |
Definition at line 150 of file transformable.cc.
References blender::axis_angle_to_quat(), blender::BLI_assert(), blender::copy_qt_qt(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), blender::eulO_to_quat(), mode, blender::normalize_qt(), blender::quat_to_axis_angle(), blender::quat_to_compatible_eulO(), blender::quat_to_eulO(), blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::ROT_MODE_AXISANGLE, blender::ROT_MODE_EUL, blender::ROT_MODE_QUAT, blender::ROT_MODE_ZYX, and values.
Referenced by blender::ed::AnimTransformable::blend_rotation_to(), blender::convert_rotation_mode_range(), and blender::ed::animrig::set_keys_to_transform().
| void blender::ed::Rotation::mirror | ( | ) |
Mirrors the rotation on the y-z plane. Modifies the values in place.
Definition at line 204 of file transformable.cc.
References blender::BLI_assert(), mode, blender::ROT_MODE_AXISANGLE, blender::ROT_MODE_QUAT, blender::ROT_MODE_ZYX, and values.
| eRotationModes blender::ed::Rotation::mode |
Definition at line 63 of file ED_anim_transformable.hh.
Referenced by converted_to_mode(), mirror(), blender::ed::rotation_interpolated(), and blender::ed::animrig::set_keys_to_transform().
| TransformFloats blender::ed::Rotation::values |
Definition at line 62 of file ED_anim_transformable.hh.
Referenced by blender::ed::AnimTransformable::blend_rotation_to(), blender::convert_rotation_mode_range(), converted_to_mode(), mirror(), blender::pose_slide_apply_quat(), blender::ed::rotation_interpolated(), blender::ed::animrig::set_keys_to_transform(), blender::ed::AnimTransformable::set_rotation(), and blender::ed::tests::TEST_F().