Public Member Functions | Public Attributes
vec2 Struct Reference

#include <tgMathlib.h>

List of all members.

Public Member Functions

void absolute ()
float length () const
float normalize ()
 operator const float * () const
 operator float * ()
int operator!= (const vec2 &v)
const vec2 operator* (float f) const
float operator* (const vec2 &v) const
vec2operator*= (float f)
const vec2 operator+ (const vec2 &v) const
vec2operator+= (const vec2 &v)
const vec2 operator- () const
const vec2 operator- (const vec2 &v) const
vec2operator-= (const vec2 &v)
const vec2 operator/ (float f) const
vec2operator/= (float f)
int operator== (const vec2 &v)
float & operator[] (int i)
float operator[] (int i) const
 vec2 ()
 vec2 (float x, float y)
 vec2 (const float *v)
 vec2 (const vec2 &v)

Public Attributes

union {
   struct {
      float   x
      float   y
   } 
   float   v [2]
}; 

Detailed Description

Definition at line 61 of file tgMathlib.h.


Constructor & Destructor Documentation

vec2::vec2 ( ) [inline]

Definition at line 63 of file tgMathlib.h.

vec2::vec2 ( float  x,
float  y 
) [inline]

Definition at line 64 of file tgMathlib.h.

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

Definition at line 65 of file tgMathlib.h.

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

Definition at line 66 of file tgMathlib.h.


Member Function Documentation

void vec2::absolute ( ) [inline]

Definition at line 99 of file tgMathlib.h.

float vec2::length ( ) const [inline]

Definition at line 90 of file tgMathlib.h.

float vec2::normalize ( ) [inline]

Definition at line 91 of file tgMathlib.h.

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

Definition at line 85 of file tgMathlib.h.

vec2::operator float * ( ) [inline]

Definition at line 84 of file tgMathlib.h.

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

Definition at line 69 of file tgMathlib.h.

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

Definition at line 71 of file tgMathlib.h.

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

Definition at line 82 of file tgMathlib.h.

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

Definition at line 77 of file tgMathlib.h.

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

Definition at line 73 of file tgMathlib.h.

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

Definition at line 79 of file tgMathlib.h.

const vec2 vec2::operator- ( void  ) const [inline]

Definition at line 74 of file tgMathlib.h.

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

Definition at line 75 of file tgMathlib.h.

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

Definition at line 80 of file tgMathlib.h.

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

Definition at line 72 of file tgMathlib.h.

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

Definition at line 78 of file tgMathlib.h.

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

Definition at line 68 of file tgMathlib.h.

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

Definition at line 87 of file tgMathlib.h.

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

Definition at line 88 of file tgMathlib.h.


Member Data Documentation

union { ... }
float vec2::v[2]

Definition at line 108 of file tgMathlib.h.

float vec2::x

Definition at line 106 of file tgMathlib.h.

float vec2::y

Definition at line 106 of file tgMathlib.h.


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


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Thu Jan 2 2014 11:38:26