Public Member Functions | Public Attributes

vector Class Reference

Search for all occurrences

#include <KeyTrack.h>

Inheritance diagram for vector:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  vector ()
  vector (float X, float Y, float Z)
  vector (float xx, float yy, float zz, float ww)
  vector (Point4 p)
vector  operator- (const vector &) const
vector  operator+ (const vector &) const

Public Attributes

float  x
float  y
float  z
float  w

Constructor & Destructor Documentation

vector ( ) [inline]
        : x(0.0f),y(0.0f),z(0.0f),w(1.0f) {} // Should be twice as fast now
vector ( float  X,
float  Y,
float  Z 
) [inline]
        : x(X), y(Y), z(Z), w(1.0f) {} // Should be twice as fast now
vector ( float  xx,
float  yy,
float  zz,
float  ww 
) [inline]
        : x(xx), y(yy), z(zz), w(ww) { }
vector ( Point4  p ) [inline]
        : x(p.x), y(p.y), z(p.z), w(p.w) { }

Member Function Documentation

vector operator- ( const vector b ) const [inline]
                                                     {
    return(vector(x-b.x,y-b.y,z-b.z));
    }
vector operator+ ( const vector b ) const [inline]
                                                     {
    return(vector(x+b.x,y+b.y,z+b.z));
    }

Member Data Documentation

float x
float y
float z
float w

vector vector vector vector vector vector vector vector vector vector
vector vector vector vector vector vector vector vector vector vector