Blender V5.3
gpu_shader_material_axis_angle_to_rotation.bsl.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
8
9[[node]]
10void axis_angle_to_rotation(float3 axis, float angle, float4 &rotation)
11{
12 rotation = to_quaternion(axis, angle).as_float4();
13}
SIMD_FORCE_INLINE btScalar angle(const btVector3 &v) const
Return the angle between this and another vector.
Definition btVector3.h:356
void axis_angle_to_rotation(float3 axis, float angle, float4 &rotation)
Quaternion to_quaternion(EulerXYZ eul)