This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/blenlib/BLI_math_rotation_legacy.hh
Clément Foucault c50e25c5f0 BLI: Math: Rename BLI_math_rotation.hh in preparation for new rotation lib
Incoming with the new matrix API (D16625) are the new rotation types.
There is typename colision if we simply reuse the same header.
2022-12-08 23:41:38 +01:00

28 lines
690 B
C++

/* 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 &center,
const float3 &axis,
float angle);
} // namespace blender::math