Get the latest Blender, older versions, or experimental builds.
Stay up-to-date with the new features in the latest Blender releases.
Access production assets and knowledge from the open movies.
Documentation on the usage and features in Blender.
Latest development updates, by Blender developers.
Guidelines, release notes and development docs.
A platform to collect and share results of the Blender Benchmark.
The yearly event that brings the community together.
Support core development with a monthly contribution.
Perform a single donation with more payment options available.
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
/** \file
* \ingroup bli
*/
#include "BLI_math_vector_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