Blender
V5.3
source
blender
gpu
shaders
material
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
7
#include "
gpu_shader_math_rotation_conversion.bsl.hh
"
8
9
[[
node
]]
10
void
axis_angle_to_rotation
(
float3
axis,
float
angle
,
float4
&rotation)
11
{
12
rotation =
to_quaternion
(axis,
angle
).as_float4();
13
}
angle
SIMD_FORCE_INLINE btScalar angle(const btVector3 &v) const
Return the angle between this and another vector.
Definition
btVector3.h:356
node
#define node
Definition
gpu_shader_cxx_attribute.hh:142
axis_angle_to_rotation
void axis_angle_to_rotation(float3 axis, float angle, float4 &rotation)
Definition
gpu_shader_material_axis_angle_to_rotation.bsl.hh:10
gpu_shader_math_rotation_conversion.bsl.hh
to_quaternion
Quaternion to_quaternion(EulerXYZ eul)
Definition
gpu_shader_math_rotation_conversion.bsl.hh:138
float3
Definition
sky_math.h:135
float4
Definition
sky_math.h:224
Generated on
for Blender by
doxygen
1.18.0