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 62 of file tgMathlib.h.


Constructor & Destructor Documentation

vec2::vec2 ( ) [inline]

Definition at line 64 of file tgMathlib.h.

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

Definition at line 65 of file tgMathlib.h.

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

Definition at line 66 of file tgMathlib.h.

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

Definition at line 67 of file tgMathlib.h.


Member Function Documentation

void vec2::absolute ( ) [inline]

Definition at line 100 of file tgMathlib.h.

float vec2::length ( ) const [inline]

Definition at line 91 of file tgMathlib.h.

float vec2::normalize ( ) [inline]

Definition at line 92 of file tgMathlib.h.

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

Definition at line 86 of file tgMathlib.h.

vec2::operator float * ( ) [inline]

Definition at line 85 of file tgMathlib.h.

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

Definition at line 70 of file tgMathlib.h.

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

Definition at line 72 of file tgMathlib.h.

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

Definition at line 83 of file tgMathlib.h.

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

Definition at line 78 of file tgMathlib.h.

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

Definition at line 74 of file tgMathlib.h.

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

Definition at line 80 of file tgMathlib.h.

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

Definition at line 75 of file tgMathlib.h.

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

Definition at line 76 of file tgMathlib.h.

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

Definition at line 81 of file tgMathlib.h.

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

Definition at line 73 of file tgMathlib.h.

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

Definition at line 79 of file tgMathlib.h.

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

Definition at line 69 of file tgMathlib.h.

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

Definition at line 88 of file tgMathlib.h.

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

Definition at line 89 of file tgMathlib.h.


Member Data Documentation

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

Definition at line 109 of file tgMathlib.h.

float vec2::x

Definition at line 107 of file tgMathlib.h.

float vec2::y

Definition at line 107 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