Logo
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SharpKmyMath::Quat Struct Reference

#include <Quat.h>

Public Member Functions

 Quat (float x, float y, float z, float w)
 
Matrix4 convertToMatrix ()
 
void setFromMatrix (Matrix4 mtx)
 
void setFromVector (Vector3 axis, f32 angle)
 

Static Public Member Functions

static Quat identity ()
 
static Quat operator* (Quat q1, Quat q2)
 
static Quat slerp (Quat q1, Quat q2, f32 param)
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Constructor & Destructor Documentation

◆ Quat()

SharpKmyMath::Quat::Quat ( float  x,
float  y,
float  z,
float  w 
)

Member Function Documentation

◆ convertToMatrix()

Matrix4 SharpKmyMath::Quat::convertToMatrix ( )

◆ identity()

Quat SharpKmyMath::Quat::identity ( )
static

◆ operator*()

Quat SharpKmyMath::Quat::operator* ( Quat  q1,
Quat  q2 
)
static

◆ setFromMatrix()

void SharpKmyMath::Quat::setFromMatrix ( Matrix4  mtx)

◆ setFromVector()

void SharpKmyMath::Quat::setFromVector ( Vector3  axis,
f32  angle 
)

◆ slerp()

Quat SharpKmyMath::Quat::slerp ( Quat  q1,
Quat  q2,
f32  param 
)
static

Member Data Documentation

◆ w

float SharpKmyMath::Quat::w

◆ x

float SharpKmyMath::Quat::x

◆ y

float SharpKmyMath::Quat::y

◆ z

float SharpKmyMath::Quat::z