Blender
V5.3
source
blender
gpu
shaders
material
gpu_shader_material_rotation_to_axis_angle.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
rotation_to_axis_angle
(
float4
rotation,
float3
&axis,
float
&
angle
)
11
{
12
const
AxisAngle
aa =
to_axis_angle
(
Quaternion::from_float4
(rotation));
13
axis = aa.
axis
;
14
angle
= aa.
angle
;
15
}
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
rotation_to_axis_angle
void rotation_to_axis_angle(float4 rotation, float3 &axis, float &angle)
Definition
gpu_shader_material_rotation_to_axis_angle.bsl.hh:10
gpu_shader_math_rotation_conversion.bsl.hh
to_axis_angle
AxisAngle to_axis_angle(Quaternion quat)
Definition
gpu_shader_math_rotation_conversion.bsl.hh:281
AxisAngle
Definition
gpu_shader_math_axis_angle.bsl.hh:9
AxisAngle::angle
float angle
Definition
gpu_shader_math_axis_angle.bsl.hh:11
AxisAngle::axis
float3 axis
Definition
gpu_shader_math_axis_angle.bsl.hh:10
Quaternion::from_float4
static Quaternion from_float4(float4 v)
Definition
gpu_shader_math_quaternion.bsl.hh:17
float3
Definition
sky_math.h:135
float4
Definition
sky_math.h:224
Generated on
for Blender by
doxygen
1.18.0