Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_math_rotation.hh
| Show All 9 Lines | |||||
| namespace blender::math { | namespace blender::math { | ||||
| /** | /** | ||||
| * Rotate the unit-length \a direction around the unit-length \a axis by the \a angle. | * Rotate the unit-length \a direction around the unit-length \a axis by the \a angle. | ||||
| */ | */ | ||||
| float3 rotate_direction_around_axis(const float3 &direction, const float3 &axis, float angle); | float3 rotate_direction_around_axis(const float3 &direction, const float3 &axis, float angle); | ||||
| /** | |||||
| * Rotate any arbitrary \a vector around the \a center position, with a unit-length \a axis | |||||
| * and the specified \a angle. | |||||
| */ | |||||
| float3 rotate_around_axis(const float3 &vector, | |||||
| const float3 ¢er, | |||||
| const float3 &axis, | |||||
| float angle); | |||||
| } // namespace blender::math | } // namespace blender::math | ||||