Nebula
Loading...
Searching...
No Matches
Game::Orientation Struct Reference

#include <orientation.h>

Inherits Math::quat.

Classes

struct  Traits
 

Public Member Functions

 Orientation (Math::quat const &q)
 
- Public Member Functions inherited from Math::quat
 quat ()
 default constructor, NOTE: does NOT setup components!
 
 quat (quat const &)=default
 default copy constructor
 
 quat (scalar x, scalar y, scalar z, scalar w)
 construct from components
 
 quat (const vec4 &rhs)
 construct from vec4
 
 quat (const __m128 &rhs)
 construct from __m128
 
void operator= (const __m128 &rhs)
 assign __m128
 
bool operator== (const quat &rhs) const
 equality operator
 
bool operator!= (const quat &rhs) const
 inequality operator
 
void load (const scalar *ptr)
 load content from 16-byte-aligned memory
 
void loadu (const scalar *ptr)
 load content from unaligned memory
 
void store (scalar *ptr) const
 write content to 16-byte-aligned memory through the write cache
 
void storeu (scalar *ptr) const
 write content to unaligned memory through the write cache
 
void stream (scalar *ptr) const
 stream content to 16-byte-aligned memory circumventing the write-cache
 
vec3 x_axis () const
 get the x axis of the cartesian coordinate system that this quaternion represents
 
vec3 y_axis () const
 get the y axis of the cartesian coordinate system that this quaternion represents
 
vec3 z_axis () const
 get the z axis of the cartesian coordinate system that this quaternion represents
 
void set (scalar x, scalar y, scalar z, scalar w)
 set content
 
void set (vec4 const &f4)
 set from vec4
 

Additional Inherited Members

- Public Attributes inherited from Math::quat
union { 
 
   struct { 
 
      float   x 
 
      float   y 
 
      float   z 
 
      float   w 
 
   }  
 
   __m128   vec 
 
};  
 

Constructor & Destructor Documentation

◆ Orientation()

Game::Orientation::Orientation ( Math::quat const & q)
inline

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