Blender V5.3
gpu_shader_material_rotation_to_quaternion.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 rotation_to_quaternion(float4 rotation, float &w, float &x, float &y, float &z)
11{
12 w = rotation.x;
13 x = rotation.y;
14 y = rotation.z;
15 z = rotation.w;
16}
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
Definition btQuadWord.h:117
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
Definition btQuadWord.h:119
void rotation_to_quaternion(float4 rotation, float &w, float &x, float &y, float &z)