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

#include <scale.h>

Inherits Math::vec3.

Classes

struct  Traits
 

Public Member Functions

 Scale ()
 
 Scale (Math::vec3 const &v)
 
- Public Member Functions inherited from Math::vec3
 vec3 ()=default
 default constructor, NOTE: does NOT setup components!
 
 vec3 (scalar x, scalar y, scalar z)
 construct from values
 
 vec3 (scalar v)
 construct from single value
 
 vec3 (const vec3 &rhs)=default
 copy constructor
 
 vec3 (const __m128 &rhs)
 construct from SSE 128 byte float array
 
void operator= (const __m128 &rhs)
 assign an vmVector4
 
void operator+= (const vec3 &rhs)
 inplace add
 
void operator-= (const vec3 &rhs)
 inplace sub
 
void operator*= (scalar s)
 inplace scalar multiply
 
void operator*= (const vec3 &rhs)
 muliply by a vector component-wise
 
void operator/= (const vec3 &rhs)
 divide by a vector component-wise
 
bool operator== (const vec3 &rhs) const
 equality operator
 
bool operator!= (const vec3 &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
 
void set (scalar x, scalar y, scalar z)
 set content
 
scalaroperator[] (const int index)
 read-only access to indexed component
 
scalar operator[] (const int index) const
 read-only access to indexed component
 

Additional Inherited Members

- Public Attributes inherited from Math::vec3
union { 
 
   struct { 
 
      float   x 
 
      float   y 
 
      float   z 
 
      float   __w 
 
   }  
 
   __m128   vec 
 
   float   v [3] 
 
};  
 

Constructor & Destructor Documentation

◆ Scale() [1/2]

Game::Scale::Scale ( )
inline

◆ Scale() [2/2]

Game::Scale::Scale ( Math::vec3 const & v)
inline

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