Blender V5.3
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
8
9struct EulerXYZ {
10 float x, y, z;
11
13 {
14 return {eul.x, eul.y, eul.z};
15 }
16
18 {
19 return {0, 0, 0};
20 }
21
23 {
24 return float3(this->x, this->y, this->z);
25 }
26};
VecBase< float, 3 > float3
static EulerXYZ from_float3(float3 eul)
static EulerXYZ identity()
float3 as_float3() const