# Vector3< Real > Class Template Reference

`#include <Mathlib.h>`

Collaboration diagram for Vector3< Real >:
[legend]

List of all members.

## Public Member Functions

Vector3 ()
Vector3 (Real x, Real y, Real z)
bool operator== (const Vector3< Real > &v) const
bool operator!= (const Vector3< Real > &v) const
Vector3< Real > operator- () const
Vector3< Real > operator+ (const Vector3< Real > &v) const
Vector3< Real > operator- (const Vector3< Real > &v) const
Vector3< Real > operator* (Real s) const
Vector3< Real > operator/ (Real s) const
Vector3< Real > & operator+= (const Vector3< Real > &v)
Vector3< Real > & operator-= (const Vector3< Real > &v)
Vector3< Real > & operator*= (Real s)
Vector3< Real > & operator/= (Real s)
operator const Real * ()
bool isZero ()
void normalize ()

union {
struct {
Real   _x
Real   _y
Real   _z
}
Real   _v [3]
};

## Detailed Description

### template<typename Real> class Vector3< Real >

Definition at line 80 of file Mathlib.h.

## Constructor & Destructor Documentation

template<typename Real>
 Vector3< Real >::Vector3 ( ) ` [inline]`

Definition at line 84 of file Mathlib.h.

template<typename Real>
 Vector3< Real >::Vector3 ( Real x, Real y, Real z ) ` [inline]`

Definition at line 85 of file Mathlib.h.

## Member Function Documentation

template<typename Real>
 bool Vector3< Real >::operator== ( const Vector3< Real > & v ) const
template<typename Real>
 bool Vector3< Real >::operator!= ( const Vector3< Real > & v ) const
template<typename Real>
 Vector3 Vector3< Real >::operator- ( ) const
template<typename Real>
 Vector3 Vector3< Real >::operator+ ( const Vector3< Real > & v ) const
template<typename Real>
 Vector3 Vector3< Real >::operator- ( const Vector3< Real > & v ) const
template<typename Real>
 Vector3 Vector3< Real >::operator* ( Real s ) const
template<typename Real>
 Vector3 Vector3< Real >::operator/ ( Real s ) const
template<typename Real>
 Vector3& Vector3< Real >::operator+= ( const Vector3< Real > & v )
template<typename Real>
 Vector3& Vector3< Real >::operator-= ( const Vector3< Real > & v )
template<typename Real>
 Vector3& Vector3< Real >::operator*= ( Real s )
template<typename Real>
 Vector3& Vector3< Real >::operator/= ( Real s )
template<typename Real>
 Vector3< Real >::operator const Real * ( ) ` [inline]`

Definition at line 113 of file Mathlib.h.

template<typename Real>
 bool Vector3< Real >::isZero ( )
template<typename Real>
 void Vector3< Real >::normalize ( )

## Member Data Documentation

template<typename Real>
 Real Vector3< Real >::_x

Definition at line 126 of file Mathlib.h.

template<typename Real>
 Real Vector3< Real >::_y

Definition at line 126 of file Mathlib.h.

template<typename Real>
 Real Vector3< Real >::_z

Definition at line 126 of file Mathlib.h.

template<typename Real>
 Real Vector3< Real >::_v[3]

Definition at line 129 of file Mathlib.h.

 union { ... }

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