Blender
V5.3
source
blender
gpu
shaders
common
gpu_shader_math_euler.bsl.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
7
#include "
gpu_shader_compat.hh
"
8
9
struct
EulerXYZ
{
10
float
x
,
y
,
z
;
11
12
static
EulerXYZ
from_float3
(
float3
eul)
13
{
14
return
{eul.x, eul.y, eul.z};
15
}
16
17
static
EulerXYZ
identity
()
18
{
19
return
{0, 0, 0};
20
}
21
22
float3
as_float3
()
const
23
{
24
return
float3
(this->x, this->y, this->z);
25
}
26
};
gpu_shader_compat.hh
blender::float3
VecBase< float, 3 > float3
Definition
BLI_math_vector_types.hh:799
EulerXYZ
Definition
gpu_shader_math_euler.bsl.hh:9
EulerXYZ::z
float z
Definition
gpu_shader_math_euler.bsl.hh:10
EulerXYZ::from_float3
static EulerXYZ from_float3(float3 eul)
Definition
gpu_shader_math_euler.bsl.hh:12
EulerXYZ::identity
static EulerXYZ identity()
Definition
gpu_shader_math_euler.bsl.hh:17
EulerXYZ::y
float y
Definition
gpu_shader_math_euler.bsl.hh:10
EulerXYZ::as_float3
float3 as_float3() const
Definition
gpu_shader_math_euler.bsl.hh:22
EulerXYZ::x
float x
Definition
gpu_shader_math_euler.bsl.hh:10
Generated on
for Blender by
doxygen
1.18.0