csl::CPoint Class Reference

#include <CPoint.h>

List of all members.

Public Member Functions

 CPoint ()
 CPoint (int a)
 CPoint (float a)
 CPoint (double a)
 CPoint (int a, int b)
 CPoint (float a, float b)
 CPoint (double a, double b)
 CPoint (int a, int b, int c)
 CPoint (float a, float b, float c)
 CPoint (double a, double b, double c)
 CPoint (PointMode m, float tr, float ttheta)
 CPoint (char s, double tr, double ttheta)
 CPoint (PointMode m, float tr, float ttheta, float psi)
 CPoint (char s, double tr, double ttheta, double tele)
 ~CPoint ()
void set (int a, int b)
void set (int a, int b, int c)
void set (float a, float b)
void set (float a, float b, float c)
void set (double a, double b)
void set (double a, double b, double c)
void set (PointMode m, float a, float b)
void set (PointMode m, float a, float b, float c)
void set (char s, double tr, double ttheta)
void set (char s, double tr, double ttheta, double tele)
void setAzimuth (double taz)
void setElevation (double tele)
void setMagnitude (double tmag)
unsigned dim ()
unsigned setdim (unsigned)
CPoint operator- ()
CPoint operator~ ()
int operator== (CPoint)
int operator!= (CPoint)
CPoint operator+ (CPoint)
CPoint operator- (CPoint)
double operator* (CPoint)
double operator| (CPoint)
CPoint operator^ (CPoint)
CPointoperator*= (double)
CPointoperator/= (double)
CPointoperator+= (CPoint)
CPointoperator-= (CPoint)
CPointoperator^= (CPoint)
double distance (CPoint *)
double distance2 (CPoint *)
double distance (CPoint &)
double distance2 (CPoint &)
double operator() (unsigned idx) const
double len ()
double len2 ()
double r ()
double theta ()
double phi ()
double ele ()
void rotateBy (double angle)
void dump ()
void dumpPol ()
void normalize ()

Public Attributes

unsigned dimn
double x
double y
double z

Friends

CPoint operator* (int, CPoint)
CPoint operator* (float, CPoint)
CPoint operator* (double, CPoint)
CPoint operator* (CPoint, int)
CPoint operator* (CPoint, float)
CPoint operator* (CPoint, double)
CPoint operator/ (CPoint, int)
CPoint operator/ (CPoint, float)
CPoint operator/ (CPoint, double)


Constructor & Destructor Documentation

csl::CPoint::CPoint (  )  [inline]

References dimn, x, y, and z.

csl::CPoint::CPoint ( int  a  )  [inline]

References dimn, x, y, and z.

csl::CPoint::CPoint ( float  a  )  [inline]

References dimn, x, y, and z.

csl::CPoint::CPoint ( double  a  )  [inline]

References dimn, x, y, and z.

csl::CPoint::CPoint ( int  a,
int  b 
) [inline]

References dimn, x, y, and z.

csl::CPoint::CPoint ( float  a,
float  b 
) [inline]

References dimn, x, y, and z.

csl::CPoint::CPoint ( double  a,
double  b 
) [inline]

References dimn, x, y, and z.

csl::CPoint::CPoint ( int  a,
int  b,
int  c 
) [inline]

References dimn, x, y, and z.

csl::CPoint::CPoint ( float  a,
float  b,
float  c 
) [inline]

References dimn, x, y, and z.

csl::CPoint::CPoint ( double  a,
double  b,
double  c 
) [inline]

References dimn, x, y, and z.

CPoint::CPoint ( PointMode  m,
float  tr,
float  ttheta 
)

References dimn, kCartesian, x, y, and z.

csl::CPoint::CPoint ( char  s,
double  tr,
double  ttheta 
) [inline]

References dimn, x, y, and z.

CPoint::CPoint ( PointMode  m,
float  tr,
float  ttheta,
float  psi 
)

References dimn, kCartesian, x, y, and z.

csl::CPoint::CPoint ( char  s,
double  tr,
double  ttheta,
double  tele 
) [inline]

References dimn, x, y, and z.

csl::CPoint::~CPoint (  )  [inline]


Member Function Documentation

void csl::CPoint::set ( int  a,
int  b 
) [inline]

void csl::CPoint::set ( int  a,
int  b,
int  c 
) [inline]

References dimn, x, y, and z.

void csl::CPoint::set ( float  a,
float  b 
) [inline]

References dimn, x, y, and z.

void csl::CPoint::set ( float  a,
float  b,
float  c 
) [inline]

References dimn, x, y, and z.

void csl::CPoint::set ( double  a,
double  b 
) [inline]

References dimn, x, y, and z.

void csl::CPoint::set ( double  a,
double  b,
double  c 
) [inline]

References dimn, x, y, and z.

void CPoint::set ( PointMode  m,
float  a,
float  b 
)

References dimn, kCartesian, x, y, and z.

void CPoint::set ( PointMode  m,
float  a,
float  b,
float  c 
)

References dimn, kCartesian, x, y, and z.

void csl::CPoint::set ( char  s,
double  tr,
double  ttheta 
) [inline]

References dimn, x, y, and z.

void csl::CPoint::set ( char  s,
double  tr,
double  ttheta,
double  tele 
) [inline]

References dimn, x, y, and z.

void CPoint::setAzimuth ( double  taz  ) 

References len(), x, and y.

Referenced by csl::SpatialSource::setAzimuth().

void CPoint::setElevation ( double  tele  ) 

References len(), theta(), x, y, and z.

Referenced by csl::SpatialSource::setElevation().

void CPoint::setMagnitude ( double  tmag  ) 

References dimn, len(), x, y, and z.

Referenced by csl::SpatialSource::setDistance().

unsigned csl::CPoint::dim (  )  [inline]

unsigned CPoint::setdim ( unsigned  n  ) 

References dimn, y, and z.

CPoint CPoint::operator- (  ) 

References dimn, x, y, and z.

CPoint CPoint::operator~ (  ) 

References dimn, x, y, and z.

int CPoint::operator== ( CPoint  Q  ) 

References dim(), dimn, FALSE, x, y, and z.

int CPoint::operator!= ( CPoint  Q  ) 

References dim(), dimn, TRUE, x, y, and z.

CPoint CPoint::operator+ ( CPoint  v  ) 

References csl_max, dim(), dimn, x, y, and z.

CPoint CPoint::operator- ( CPoint  v  ) 

References csl_max, dim(), dimn, x, y, and z.

double CPoint::operator* ( CPoint  w  ) 

References x, y, and z.

double CPoint::operator| ( CPoint  w  ) 

References x, and y.

CPoint CPoint::operator^ ( CPoint  w  ) 

References dimn, x, y, and z.

CPoint & CPoint::operator*= ( double  c  ) 

References x, y, and z.

CPoint & CPoint::operator/= ( double  c  ) 

References x, y, and z.

CPoint & CPoint::operator+= ( CPoint  v  ) 

References csl_max, dim(), dimn, x, y, and z.

CPoint & CPoint::operator-= ( CPoint  v  ) 

References csl_max, dim(), dimn, x, y, and z.

CPoint & CPoint::operator^= ( CPoint  w  ) 

References dimn, x, y, and z.

double CPoint::distance ( CPoint Q  ) 

References x, y, and z.

Referenced by csl::SpeakerSetLayout::findSpeakerTriplets().

double CPoint::distance2 ( CPoint Q  ) 

References x, y, and z.

Referenced by PME::check_for_grabbed_source(), and csl::HRTFDatabase::hrtfAt().

double CPoint::distance ( CPoint Q  ) 

References x, y, and z.

double CPoint::distance2 ( CPoint Q  ) 

References x, y, and z.

double CPoint::operator() ( unsigned  idx  )  const

References x, y, and z.

double csl::CPoint::len (  )  [inline]

double csl::CPoint::len2 (  )  [inline]

References x, y, and z.

double csl::CPoint::r (  )  [inline]

double CPoint::theta (  ) 

double CPoint::phi (  ) 

References CSL_PI, x, y, and z.

double CPoint::ele (  ) 

void CPoint::rotateBy ( double  angle  ) 

References len(), theta(), x, and y.

Referenced by csl::NtoMPanner::nextBuffer().

void csl::CPoint::dump ( void   )  [inline]

References x, y, and z.

void csl::CPoint::dumpPol (  )  [inline]

References CSL_DEGS_PER_RAD, ele(), r(), and theta().

void CPoint::normalize (  ) 


Friends And Related Function Documentation

CPoint operator* ( int  c,
CPoint  Q 
) [friend]

CPoint operator* ( float  c,
CPoint  Q 
) [friend]

CPoint operator* ( double  c,
CPoint  Q 
) [friend]

CPoint operator* ( CPoint  Q,
int  c 
) [friend]

CPoint operator* ( CPoint  Q,
float  c 
) [friend]

CPoint operator* ( CPoint  Q,
double  c 
) [friend]

CPoint operator/ ( CPoint  Q,
int  c 
) [friend]

CPoint operator/ ( CPoint  Q,
float  c 
) [friend]

CPoint operator/ ( CPoint  Q,
double  c 
) [friend]


Member Data Documentation


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

Generated on Thu Sep 17 23:14:18 2009 for CSL by  doxygen 1.5.8