SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Friends | List of all members
Vector Class Reference

#include <Vector.h>

Public Member Functions

 Vector (const Point &)
 
 Vector (double x, double y, double z)
 
 Vector (const Vector &)
 
 Vector ()
 
 Vector (double init)
 
double length () const
 
double length2 () const
 
Vectoroperator= (const Vector &)
 
Vectoroperator= (const double &)
 
Vectoroperator= (const int &)
 
double & operator[] (int idx)
 
double operator[] (int idx) const
 
Vector operator* (const double) const
 
Vector operator* (const Vector &) const
 
Vectoroperator*= (const double)
 
Vectoroperator*= (const Vector &)
 
Vector operator/ (const double) const
 
Vector operator/ (const Vector &) const
 
Vectoroperator/= (const double)
 
Vector operator+ (const Vector &) const
 
Vectoroperator+= (const Vector &)
 
Vector operator- () const
 
Vector operator- (const Vector &) const
 
Vector operator- (const Point &) const
 
Vectoroperator-= (const Vector &)
 
double normalize ()
 
double safe_normalize ()
 
SCISHARE Vector normal () const
 
SCISHARE Vector safe_normal () const
 
void x (double)
 
double x () const
 
void y (double)
 
double y () const
 
void z (double)
 
double z () const
 
void u (double)
 
double u () const
 
void v (double)
 
double v () const
 
void w (double)
 
double w () const
 
SCISHARE void rotz90 (const int)
 
SCISHARE std::string get_string () const
 
SCISHARE void find_orthogonal (Vector &, Vector &) const
 
SCISHARE bool check_find_orthogonal (Vector &, Vector &) const
 
const Pointpoint () const
 
PointasPoint () const
 
double minComponent () const
 
double maxComponent () const
 
void Set (double x, double y, double z)
 

Friends

class Point
 
double Dot (const Vector &, const Vector &)
 
double Dot (const Point &, const Vector &)
 
double Dot (const Vector &, const Point &)
 
Vector Cross (const Vector &, const Vector &)
 
Vector Abs (const Vector &)
 
Vector Interpolate (const Vector &, const Vector &, double)
 

Constructor & Destructor Documentation

Vector ( const Point p)
inlineexplicit
Vector ( double  x,
double  y,
double  z 
)
inline
Vector ( const Vector p)
inline
Vector ( )
inline
Vector ( double  init)
inlineexplicit

Member Function Documentation

Point & asPoint ( ) const
inline
SCISHARE bool check_find_orthogonal ( Vector ,
Vector  
) const
void find_orthogonal ( Vector v1,
Vector v2 
) const
SCISHARE std::string get_string ( ) const
double length ( ) const
inline
double length2 ( ) const
inline
double maxComponent ( ) const
inline
double minComponent ( ) const
inline
SCISHARE Vector normal ( ) const
double normalize ( )
inline
Vector operator* ( const double  s) const
inline
Vector operator* ( const Vector v2) const
inline
Vector & operator*= ( const double  d)
inline
Vector & operator*= ( const Vector v)
inline
Vector operator+ ( const Vector v2) const
inline
Vector & operator+= ( const Vector v2)
inline
Vector operator- ( ) const
inline
Vector operator- ( const Vector v2) const
inline
Vector operator- ( const Point v2) const
inline
Vector & operator-= ( const Vector v2)
inline
Vector operator/ ( const double  d) const
inline
Vector operator/ ( const Vector v2) const
inline
Vector & operator/= ( const double  d)
inline
Vector & operator= ( const Vector v)
inline
Vector & operator= ( const double &  d)
inline
Vector & operator= ( const int &  d)
inline
double& operator[] ( int  idx)
inline
double operator[] ( int  idx) const
inline
const Point & point ( ) const
inline
SCISHARE void rotz90 ( const int  )
SCISHARE Vector safe_normal ( ) const
double safe_normalize ( )
inline
void Set ( double  x,
double  y,
double  z 
)
inline
void u ( double  d)
inline
double u ( ) const
inline
void v ( double  d)
inline
double v ( ) const
inline
void w ( double  d)
inline
double w ( ) const
inline
void x ( double  d)
inline
double x ( ) const
inline
void y ( double  d)
inline
double y ( ) const
inline
void z ( double  d)
inline
double z ( ) const
inline

Friends And Related Function Documentation

Vector Abs ( const Vector v)
friend
Vector Cross ( const Vector v1,
const Vector v2 
)
friend
double Dot ( const Vector v1,
const Vector v2 
)
friend
double Dot ( const Point p,
const Vector v 
)
friend
double Dot ( const Vector v,
const Point p 
)
friend
Vector Interpolate ( const Vector v1,
const Vector v2,
double  weight 
)
friend
friend class Point
friend

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