This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/blenlib/BLI_math_rotation.hh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
376 B
C++
Raw Normal View History

/* 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);
} // namespace blender::math