Monado OpenXR Runtime
Data Fields | Related Functions
xrt_quat Struct Reference

A quaternion with single floats. More...

#include <xrt/xrt_defines.h>

Data Fields

float x
 
float y
 
float z
 
float w
 

Related Functions

(Note that these are not member functions.)

bool math_quat_validate (const struct xrt_quat *quat)
 Check if this quat can be used in transformation operations. More...
 
void math_quat_normalize (struct xrt_quat *inout)
 Normalize a quaternion. More...
 
void math_quat_rotate (const struct xrt_quat *left, const struct xrt_quat *right, struct xrt_quat *result)
 Rotate a quaternion (compose rotations). More...
 

Detailed Description

A quaternion with single floats.

Field Documentation

◆ w

float xrt_quat::w

◆ x

float xrt_quat::x

◆ y

float xrt_quat::y

◆ z

float xrt_quat::z

The documentation for this struct was generated from the following files: