Public Member Functions | Public Attributes
vec4 Struct Reference

#include <tgMathlib.h>

List of all members.

Public Member Functions

float length () const
float normalize ()
 operator const float * () const
 operator float * ()
int operator!= (const vec4 &v)
const vec4 operator* (float f) const
float operator* (const vec3 &v) const
float operator* (const vec4 &v) const
vec4operator*= (float f)
const vec4 operator+ (const vec4 &v) const
vec4operator+= (const vec4 &v)
const vec4 operator- () const
const vec4 operator- (const vec4 &v) const
vec4operator-= (const vec4 &v)
const vec4 operator/ (float f) const
vec4operator/= (float f)
int operator== (const vec4 &v)
float & operator[] (int i)
float operator[] (int i) const
void random ()
 vec4 ()
 vec4 (float x, float y, float z, float w)
 vec4 (const float *v)
 vec4 (const vec3 &v)
 vec4 (const vec3 &v, float w)
 vec4 (const vec4 &v)

Public Attributes

union {
   struct {
      float   w
      float   x
      float   y
      float   z
   } 
   float   v [4]
}; 

Detailed Description

Definition at line 225 of file tgMathlib.h.


Constructor & Destructor Documentation

vec4::vec4 ( ) [inline]

Definition at line 227 of file tgMathlib.h.

vec4::vec4 ( float  x,
float  y,
float  z,
float  w 
) [inline]

Definition at line 228 of file tgMathlib.h.

vec4::vec4 ( const float *  v) [inline]

Definition at line 229 of file tgMathlib.h.

vec4::vec4 ( const vec3 v) [inline]

Definition at line 230 of file tgMathlib.h.

vec4::vec4 ( const vec3 v,
float  w 
) [inline]

Definition at line 231 of file tgMathlib.h.

vec4::vec4 ( const vec4 v) [inline]

Definition at line 232 of file tgMathlib.h.


Member Function Documentation

float vec4::length ( ) const [inline]

Definition at line 262 of file tgMathlib.h.

float vec4::normalize ( ) [inline]

Definition at line 263 of file tgMathlib.h.

vec4::operator const float * ( ) const [inline]

Definition at line 257 of file tgMathlib.h.

vec4::operator float * ( ) [inline]

Definition at line 256 of file tgMathlib.h.

int vec4::operator!= ( const vec4 v) [inline]

Definition at line 240 of file tgMathlib.h.

const vec4 vec4::operator* ( float  f) const [inline]

Definition at line 242 of file tgMathlib.h.

float vec4::operator* ( const vec3 v) const [inline]

Definition at line 253 of file tgMathlib.h.

float vec4::operator* ( const vec4 v) const [inline]

Definition at line 254 of file tgMathlib.h.

vec4& vec4::operator*= ( float  f) [inline]

Definition at line 248 of file tgMathlib.h.

const vec4 vec4::operator+ ( const vec4 v) const [inline]

Definition at line 244 of file tgMathlib.h.

vec4& vec4::operator+= ( const vec4 v) [inline]

Definition at line 250 of file tgMathlib.h.

const vec4 vec4::operator- ( ) const [inline]

Definition at line 245 of file tgMathlib.h.

const vec4 vec4::operator- ( const vec4 v) const [inline]

Definition at line 246 of file tgMathlib.h.

vec4& vec4::operator-= ( const vec4 v) [inline]

Definition at line 251 of file tgMathlib.h.

const vec4 vec4::operator/ ( float  f) const [inline]

Definition at line 243 of file tgMathlib.h.

vec4& vec4::operator/= ( float  f) [inline]

Definition at line 249 of file tgMathlib.h.

int vec4::operator== ( const vec4 v) [inline]

Definition at line 239 of file tgMathlib.h.

float& vec4::operator[] ( int  i) [inline]

Definition at line 259 of file tgMathlib.h.

float vec4::operator[] ( int  i) const [inline]

Definition at line 260 of file tgMathlib.h.

void vec4::random ( ) [inline]

Definition at line 234 of file tgMathlib.h.


Member Data Documentation

union { ... }
float vec4::v[4]

Definition at line 278 of file tgMathlib.h.

float vec4::w

Definition at line 276 of file tgMathlib.h.

float vec4::x

Definition at line 276 of file tgMathlib.h.

float vec4::y

Definition at line 276 of file tgMathlib.h.

float vec4::z

Definition at line 276 of file tgMathlib.h.


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


blort
Author(s): Thomas Mörwald , Michael Zillich , Andreas Richtsfeld , Johann Prankl , Markus Vincze , Bence Magyar
autogenerated on Wed Aug 26 2015 15:24:12