Karma Engine
Loading...
Searching...
No Matches
Karma::TQuaternion Struct Reference

#include <Transform.h>

Public Attributes

glm::vec1 X
 
glm::vec1 Y
 
glm::vec1 Z
 
glm::vec1 W
 

Detailed Description

Floating point quaternion that can represent a rotation about an axis in 3-D space. The X, Y, Z, W components also double as the Axis/Angle format.

Order matters when composing quaternions: C = A * B will yield a quaternion C that logically first applies B then A to any subsequent transformation (right first, then left). Note that this is the opposite order of FTransform multiplication.

Example: LocalToWorld = (LocalToWorld * DeltaRotation) will change rotation in local space by DeltaRotation. Example: LocalToWorld = (DeltaRotation * LocalToWorld) will change rotation in world space by DeltaRotation.

Member Data Documentation

◆ W

glm::vec1 Karma::TQuaternion::W

The quaternion's W-component.

◆ X

glm::vec1 Karma::TQuaternion::X

The quaternion's X-component.

◆ Y

glm::vec1 Karma::TQuaternion::Y

The quaternion's Y-component.

◆ Z

glm::vec1 Karma::TQuaternion::Z

The quaternion's Z-component.


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