Blender V4.5
BLI_math_rotation_legacy.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
10
12
13namespace blender::math {
14
18float3 rotate_direction_around_axis(const float3 &direction, const float3 &axis, float angle);
19
24float3 rotate_around_axis(const float3 &vector,
25 const float3 &center,
26 const float3 &axis,
27 float angle);
28
29} // namespace blender::math
SIMD_FORCE_INLINE btScalar angle(const btVector3 &v) const
Return the angle between this and another vector.
Definition btVector3.h:356
float3 rotate_direction_around_axis(const float3 &direction, const float3 &axis, float angle)
float3 rotate_around_axis(const float3 &vector, const float3 &center, const float3 &axis, float angle)
VecBase< float, 3 > float3