MeshKit  1.0
Vec3 Class Reference

#include <Vec3.h>

List of all members.

Public Member Functions

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

Protected Member Functions

void copy (const Vec3 &v)

Private Attributes

double elt [3]

Detailed Description

Definition at line 12 of file Vec3.h.


Constructor & Destructor Documentation

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

Definition at line 23 of file Vec3.h.

Vec3 ( const Vec3 v) [inline]

Definition at line 27 of file Vec3.h.

Vec3 ( const double *  v) [inline]

Definition at line 28 of file Vec3.h.


Member Function Documentation

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

Definition at line 82 of file Vec3.h.

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

Definition at line 93 of file Vec3.h.

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

Definition at line 37 of file Vec3.h.

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

Definition at line 38 of file Vec3.h.

Vec3 operator* ( double  s) const [inline]

Definition at line 145 of file Vec3.h.

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

Definition at line 155 of file Vec3.h.

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

Definition at line 117 of file Vec3.h.

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

Definition at line 130 of file Vec3.h.

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

Definition at line 105 of file Vec3.h.

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

Definition at line 135 of file Vec3.h.

Vec3 operator- ( ) const [inline]

Definition at line 140 of file Vec3.h.

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

Definition at line 111 of file Vec3.h.

Vec3 operator/ ( double  s) const [inline]

Definition at line 150 of file Vec3.h.

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

Definition at line 123 of file Vec3.h.

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

Definition at line 99 of file Vec3.h.

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

Definition at line 87 of file Vec3.h.

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

Definition at line 40 of file Vec3.h.

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

Definition at line 41 of file Vec3.h.

Vec3 operator^ ( const Vec3 v) const [inline]

Definition at line 160 of file Vec3.h.

double* raw ( ) [inline]

Definition at line 43 of file Vec3.h.

const double* raw ( ) const [inline]

Definition at line 44 of file Vec3.h.

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

Definition at line 55 of file Vec3.h.


Member Data Documentation

double elt[3] [private]

Definition at line 14 of file Vec3.h.


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