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

#include <Point.h>

Public Member Functions

 Point (const Vector &v)
 
 Point (double x, double y, double z)
 
SCISHARE Point (double, double, double, double)
 
 Point (const Point &)
 
 Point ()
 
Pointoperator= (const Point &)
 
Vector operator+ (const Point &) const
 
Vector operator- (const Point &) const
 
Point operator+ (const Vector &) const
 
Point operator- (const Vector &) const
 
Point operator* (double) const
 
Pointoperator*= (const double)
 
Pointoperator+= (const Vector &)
 
Pointoperator-= (const Vector &)
 
Pointoperator+= (const Point &)
 
Pointoperator-= (const Point &)
 
Pointoperator/= (const double)
 
Point operator/ (const double) const
 
Point operator- () const
 
double & operator() (int idx)
 
double operator() (int idx) const
 
void addscaled (const Point &p, const double scale)
 
void x (const double)
 
double x () const
 
void y (const double)
 
double y () const
 
void z (const double)
 
double z () const
 
double & operator[] (int idx)
 
double operator[] (int idx) const
 
SCISHARE std::string get_string () const
 

Friends

SCISHARE friend std::ostream & operator<< (std::ostream &os, const Point &p)
 
SCISHARE friend std::istream & operator>> (std::istream &os, Point &p)
 

Constructor & Destructor Documentation

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

Member Function Documentation

void addscaled ( const Point p,
const double  scale 
)
inline
std::string get_string ( ) const
double & operator() ( int  idx)
inline
double operator() ( int  idx) const
inline
Point operator* ( double  d) const
inline
Point & operator*= ( const double  d)
inline
Vector operator+ ( const Point p) const
inline
Point operator+ ( const Vector v) const
inline
Point & operator+= ( const Vector v)
inline
Point & operator+= ( const Point v)
inline
Vector operator- ( const Point p) const
inline
Point operator- ( const Vector v) const
inline
Point operator- ( ) const
inline
Point & operator-= ( const Vector v)
inline
Point & operator-= ( const Point v)
inline
Point operator/ ( const double  d) const
inline
Point & operator/= ( const double  d)
inline
Point & operator= ( const Point p)
inline
double& operator[] ( int  idx)
inline
double operator[] ( int  idx) const
inline
void x ( const double  d)
inline
double x ( ) const
inline
void y ( const double  d)
inline
double y ( ) const
inline
void z ( const double  d)
inline
double z ( ) const
inline

Friends And Related Function Documentation

SCISHARE friend std::ostream& operator<< ( std::ostream &  os,
const Point p 
)
friend
SCISHARE friend std::istream& operator>> ( std::istream &  os,
Point p 
)
friend

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