altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
vec3 Class Reference

#include <vector.h>

Public Member Functions

 vec3 ()
 
 vec3 (float x, float y, float z)
 
 vec3 (vec4 vector)
 
vec3normalize ()
 
float magnitude ()
 
vec3operator= (const vec3 &vector)
 
bool operator== (const vec3 &vector)
 
vec3 operator+ (const vec3 &vector) const
 
vec3 operator- (const vec3 &vector) const
 
vec3 operator- () const
 
float operator* (const vec3 &vector) const
 
float operator/ (const vec3 &vector)
 
vec3 operator* (const float scalar) const
 
vec3 operator/ (const float scalar)
 
vec3operator+= (const vec3 &vec)
 
vec3operator-= (const vec3 &vec)
 
vec3operator*= (const float scalar)
 
vec3 project (const vec3 &a)
 

Static Public Member Functions

static vec3 crossproduct (const vec3 &VecA, const vec3 &VecB)
 

Public Attributes

float x
 
float y
 
float z
 

Constructor & Destructor Documentation

vec3::vec3 ( )

Here is the caller graph for this function:

vec3::vec3 ( float  x,
float  y,
float  z 
)
vec3::vec3 ( vec4  vector)

Member Function Documentation

vec3 vec3::crossproduct ( const vec3 VecA,
const vec3 VecB 
)
static

Here is the caller graph for this function:

float vec3::magnitude ( )

Here is the call graph for this function:

Here is the caller graph for this function:

vec3 & vec3::normalize ( )

Here is the call graph for this function:

Here is the caller graph for this function:

float vec3::operator* ( const vec3 vector) const
vec3 vec3::operator* ( const float  scalar) const

Here is the call graph for this function:

vec3 & vec3::operator*= ( const float  scalar)
vec3 vec3::operator+ ( const vec3 vector) const
vec3 & vec3::operator+= ( const vec3 vec)
vec3 vec3::operator- ( const vec3 vector) const
vec3 vec3::operator- ( ) const
vec3 & vec3::operator-= ( const vec3 vec)
float vec3::operator/ ( const vec3 vector)
vec3 vec3::operator/ ( const float  scalar)

Here is the call graph for this function:

vec3 & vec3::operator= ( const vec3 vector)
bool vec3::operator== ( const vec3 vector)

Here is the call graph for this function:

vec3 vec3::project ( const vec3 a)

Member Data Documentation

float vec3::x
float vec3::y
float vec3::z

The documentation for this class was generated from the following files: