Blender V5.3
types_quaternion.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2026 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#pragma once
6
7#include "util/types_base.h"
8
10
11struct Quaternion {
12 float w, x, y, z;
13};
14
16 const float x,
17 const float y,
18 const float z)
19{
20 return {w, x, y, z};
21}
22
24{
25 return make_quaternion(1.0f, 0.0f, 0.0f, 0.0f);
26}
27
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
#define ccl_device_inline
#define CCL_NAMESPACE_END
ccl_device_inline Quaternion identity_quaternion()
ccl_device_inline Quaternion make_quaternion(const float w, const float x, const float y, const float z)