NcEngine
nc::Quaternion Struct Reference

Quaternion type for representing 3D rotations. More...

#include <Quaternion.h>

Public Member Functions

 Quaternion (float X, float Y, float Z, float W)
 
auto ToEulerAngles () const noexcept -> Vector3
 
void ToAxisAngle (Vector3 *axisOut, float *angleOut) const noexcept
 

Static Public Member Functions

static constexpr auto Identity () -> Quaternion
 
static auto FromEulerAngles (const Vector3 &angles) -> Quaternion
 
static auto FromEulerAngles (float x, float y, float z) -> Quaternion
 
static auto FromAxisAngle (const Vector3 &axis, float radians) -> Quaternion
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Detailed Description

Quaternion type for representing 3D rotations.


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