MeshKit  1.0
Vec4 Class Reference

#include <Vec4.h>

List of all members.

Public Member Functions

 Vec4 (double x=0, double y=0, double z=0, double w=0)
 Vec4 (const Vec4 &v)
 Vec4 (const double *v)
double & operator() (int i)
double operator() (int i) const
double & operator[] (int i)
const double & operator[] (int i) const
double * raw ()
const double * raw () const
bool operator== (const Vec4 &) const
bool operator!= (const Vec4 &) const
void set (double x, double y, double z, double w)
Vec4operator= (const Vec4 &v)
Vec4operator+= (const Vec4 &v)
Vec4operator-= (const Vec4 &v)
Vec4operator*= (double s)
Vec4operator/= (double s)
Vec4 operator+ (const Vec4 &v) const
Vec4 operator- (const Vec4 &v) const
Vec4 operator- () const
Vec4 operator* (double s) const
Vec4 operator/ (double s) const
double operator* (const Vec4 &v) const

Protected Member Functions

void copy (const Vec4 &v)

Private Attributes

double elt [4]

Detailed Description

Definition at line 12 of file Vec4.h.


Constructor & Destructor Documentation

Vec4 ( double  x = 0,
double  y = 0,
double  z = 0,
double  w = 0 
) [inline]

Definition at line 23 of file Vec4.h.

Vec4 ( const Vec4 v) [inline]

Definition at line 29 of file Vec4.h.

Vec4 ( const double *  v) [inline]

Definition at line 30 of file Vec4.h.


Member Function Documentation

void copy ( const Vec4 v) [inline, protected]

Definition at line 85 of file Vec4.h.

bool operator!= ( const Vec4 v) const [inline]

Definition at line 96 of file Vec4.h.

double& operator() ( int  i) [inline]

Definition at line 39 of file Vec4.h.

double operator() ( int  i) const [inline]

Definition at line 40 of file Vec4.h.

Vec4 operator* ( double  s) const [inline]

Definition at line 147 of file Vec4.h.

double operator* ( const Vec4 v) const [inline]

Definition at line 157 of file Vec4.h.

Vec4 & operator*= ( double  s) [inline]

Definition at line 120 of file Vec4.h.

Vec4 operator+ ( const Vec4 v) const [inline]

Definition at line 132 of file Vec4.h.

Vec4 & operator+= ( const Vec4 v) [inline]

Definition at line 108 of file Vec4.h.

Vec4 operator- ( const Vec4 v) const [inline]

Definition at line 137 of file Vec4.h.

Vec4 operator- ( ) const [inline]

Definition at line 142 of file Vec4.h.

Vec4 & operator-= ( const Vec4 v) [inline]

Definition at line 114 of file Vec4.h.

Vec4 operator/ ( double  s) const [inline]

Definition at line 152 of file Vec4.h.

Vec4 & operator/= ( double  s) [inline]

Definition at line 126 of file Vec4.h.

Vec4 & operator= ( const Vec4 v) [inline]

Definition at line 102 of file Vec4.h.

bool operator== ( const Vec4 v) const [inline]

Definition at line 90 of file Vec4.h.

double& operator[] ( int  i) [inline]

Definition at line 42 of file Vec4.h.

const double& operator[] ( int  i) const [inline]

Definition at line 43 of file Vec4.h.

double* raw ( ) [inline]

Definition at line 45 of file Vec4.h.

const double* raw ( ) const [inline]

Definition at line 46 of file Vec4.h.

void set ( double  x,
double  y,
double  z,
double  w 
) [inline]

Definition at line 57 of file Vec4.h.


Member Data Documentation

double elt[4] [private]

Definition at line 14 of file Vec4.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines