blob: 50a062162ad3e995b922099b151bc4af197805c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
/** \file
* \ingroup bli
*/
#include "BLI_math_vec_types.hh"
namespace blender::math {
/**
* 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);
/**
* 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
|