CSL
6.0
|
#include <CPoint.h>
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) |
COORD_TYPE | operator* (CPoint) |
COORD_TYPE | operator| (CPoint) |
CPoint | operator^ (CPoint) |
CPoint & | operator*= (double) |
CPoint & | operator/= (double) |
CPoint & | operator+= (CPoint) |
CPoint & | operator-= (CPoint) |
CPoint & | operator^= (CPoint) |
COORD_TYPE | distance (CPoint *) |
COORD_TYPE | distance2 (CPoint *) |
COORD_TYPE | distance (CPoint &) |
COORD_TYPE | distance2 (CPoint &) |
COORD_TYPE | operator() (unsigned idx) const |
COORD_TYPE | len () |
COORD_TYPE | len2 () |
COORD_TYPE | r () |
COORD_TYPE | theta () |
COORD_TYPE | phi () |
COORD_TYPE | ele () |
void | rotateBy (double angle) |
void | dump () |
void | dumpPol () |
void | normalize () |
Public Attributes | |
unsigned | dimn |
COORD_TYPE | x |
COORD_TYPE | y |
COORD_TYPE | 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) |
|
inline |
Definition at line 53 of file CPoint.h.
References COORD_TYPE.
|
inline |
Definition at line 54 of file CPoint.h.
References COORD_TYPE.
|
inline |
Definition at line 58 of file CPoint.h.
References COORD_TYPE.
|
inline |
Definition at line 59 of file CPoint.h.
References COORD_TYPE.
CPoint::CPoint | ( | PointMode | m, |
float | tr, | ||
float | ttheta | ||
) |
Definition at line 18 of file CPoint.cpp.
References dimn, kCartesian, x, y, and z.
|
inline |
CPoint::CPoint | ( | PointMode | m, |
float | tr, | ||
float | ttheta, | ||
float | psi | ||
) |
Definition at line 31 of file CPoint.cpp.
References dimn, kCartesian, x, y, and z.
|
inline |
|
inline |
Definition at line 73 of file CPoint.h.
Referenced by csl::HRTFDatabase::loadFromDB(), csl::NtoMPanner::nextBuffer(), Controller::set_data(), csl::SpatialSource::setPosition(), and csl::Speaker::Speaker().
|
inline |
Definition at line 75 of file CPoint.h.
References COORD_TYPE.
|
inline |
Definition at line 76 of file CPoint.h.
References COORD_TYPE.
|
inline |
Definition at line 77 of file CPoint.h.
References COORD_TYPE.
|
inline |
Definition at line 78 of file CPoint.h.
References COORD_TYPE.
void CPoint::set | ( | PointMode | m, |
float | a, | ||
float | b | ||
) |
Definition at line 62 of file CPoint.cpp.
References dimn, kCartesian, x, y, and z.
void CPoint::set | ( | PointMode | m, |
float | a, | ||
float | b, | ||
float | c | ||
) |
Definition at line 74 of file CPoint.cpp.
References dimn, kCartesian, x, y, and z.
|
inline |
|
inline |
void CPoint::setAzimuth | ( | double | taz | ) |
Definition at line 87 of file CPoint.cpp.
Referenced by csl::SpatialSource::setAzimuth().
void CPoint::setElevation | ( | double | tele | ) |
Definition at line 93 of file CPoint.cpp.
References len(), theta(), x, y, and z.
Referenced by csl::SpatialSource::setElevation().
void CPoint::setMagnitude | ( | double | tmag | ) |
Definition at line 101 of file CPoint.cpp.
References dimn, len(), x, y, and z.
Referenced by csl::SpatialSource::setDistance().
|
inline |
Definition at line 89 of file CPoint.h.
References dimn.
Referenced by operator!=(), operator*(), operator+(), operator+(), operator+=(), operator-(), operator-=(), operator/(), and operator==().
unsigned CPoint::setdim | ( | unsigned | n | ) |
Definition at line 53 of file CPoint.cpp.
CPoint CPoint::operator- | ( | ) |
CPoint CPoint::operator~ | ( | ) |
int CPoint::operator== | ( | CPoint | Q | ) |
int CPoint::operator!= | ( | CPoint | Q | ) |
COORD_TYPE CPoint::operator* | ( | CPoint | w | ) |
Definition at line 185 of file CPoint.cpp.
COORD_TYPE CPoint::operator| | ( | CPoint | w | ) |
Definition at line 190 of file CPoint.cpp.
CPoint & CPoint::operator*= | ( | double | c | ) |
Definition at line 205 of file CPoint.cpp.
CPoint & CPoint::operator/= | ( | double | c | ) |
Definition at line 212 of file CPoint.cpp.
COORD_TYPE CPoint::distance | ( | CPoint * | Q | ) |
Definition at line 353 of file CPoint.cpp.
References COORD_TYPE, x, y, and z.
Referenced by csl::SpeakerSetLayout::findSpeakerTriplets().
COORD_TYPE CPoint::distance2 | ( | CPoint * | Q | ) |
Definition at line 360 of file CPoint.cpp.
References COORD_TYPE, x, y, and z.
Referenced by PME::check_for_grabbed_source(), and csl::HRTFDatabase::hrtfAt().
COORD_TYPE CPoint::distance | ( | CPoint & | Q | ) |
Definition at line 367 of file CPoint.cpp.
References COORD_TYPE, x, y, and z.
COORD_TYPE CPoint::distance2 | ( | CPoint & | Q | ) |
Definition at line 374 of file CPoint.cpp.
References COORD_TYPE, x, y, and z.
COORD_TYPE CPoint::operator() | ( | unsigned | idx | ) | const |
Definition at line 338 of file CPoint.cpp.
|
inline |
Definition at line 143 of file CPoint.h.
Referenced by Orbit::calculate_eccentricity(), Orbit::calculate_orbital_params(), ele(), csl::VBAP::nextBuffer(), normalize(), r(), rotateBy(), setAzimuth(), setElevation(), setMagnitude(), and vecAngle().
|
inline |
|
inline |
Definition at line 151 of file CPoint.h.
References len().
Referenced by csl::SpatialSource::distance(), dumpPol(), and csl::Speaker::radius().
COORD_TYPE CPoint::theta | ( | ) |
Definition at line 383 of file CPoint.cpp.
References COORD_TYPE, CSL_PI, CSL_TWOPI, x, and y.
Referenced by csl::SpatialSource::azimuth(), csl::Speaker::azimuth(), dumpPol(), rotateBy(), and setElevation().
COORD_TYPE CPoint::phi | ( | ) |
COORD_TYPE CPoint::ele | ( | ) |
Definition at line 410 of file CPoint.cpp.
Referenced by dumpPol(), csl::SpatialSource::elevation(), and csl::Speaker::elevation().
void CPoint::rotateBy | ( | double | angle | ) |
Definition at line 416 of file CPoint.cpp.
References COORD_TYPE, len(), theta(), x, and y.
Referenced by csl::NtoMPanner::nextBuffer().
|
inline |
void CPoint::normalize | ( | ) |
Definition at line 423 of file CPoint.cpp.
References COORD_TYPE, len(), x, y, and z.
Referenced by Orbit::calculate_eccentricity(), csl::HRTFDatabase::hrtfAt(), csl::VBAP::nextBuffer(), and csl::Speaker::setRadius().
Definition at line 246 of file CPoint.cpp.
Definition at line 255 of file CPoint.cpp.
Definition at line 264 of file CPoint.cpp.
Definition at line 273 of file CPoint.cpp.
Definition at line 282 of file CPoint.cpp.
Definition at line 291 of file CPoint.cpp.
Definition at line 300 of file CPoint.cpp.
Definition at line 309 of file CPoint.cpp.
Definition at line 318 of file CPoint.cpp.
unsigned csl::CPoint::dimn |
Definition at line 40 of file CPoint.h.
Referenced by CPoint(), dim(), operator!=(), operator*(), operator+(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator==(), operator^(), operator^=(), operator~(), set(), setdim(), and setMagnitude().
COORD_TYPE csl::CPoint::x |
Definition at line 41 of file CPoint.h.
Referenced by Orbit::calculate_absolute_position(), Orbit::calculate_orbital_params(), csl::ShoeBox::calculateReflections(), csl::ShoeBox::checkPositionValues(), CPoint(), distance(), distance2(), csl::ShoeBox::findNumReflectionsFromTime(), csl::SpeakerSetLayout::findSpeakerTriplets(), csl::VBAP::nextBuffer(), normalize(), operator!=(), operator()(), operator*(), operator*(), operator*=(), operator+(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator==(), operator^(), operator^=(), operator|(), operator~(), phi(), csl::SpeakerLayout::readSpeakerFile(), rotateBy(), set(), setAzimuth(), setElevation(), csl::ShoeBox::setListenerLocation(), setMagnitude(), csl::ShoeBox::setRoomSize(), csl::ShoeBox::setSourceLocation(), theta(), and PMESource::update_position().
COORD_TYPE csl::CPoint::y |
Definition at line 41 of file CPoint.h.
Referenced by Orbit::calculate_absolute_position(), Orbit::calculate_orbital_params(), csl::ShoeBox::calculateReflections(), csl::ShoeBox::checkPositionValues(), CPoint(), distance(), distance2(), csl::ShoeBox::findNumReflectionsFromTime(), csl::SpeakerSetLayout::findSpeakerTriplets(), csl::VBAP::nextBuffer(), normalize(), operator!=(), operator()(), operator*(), operator*(), operator*=(), operator+(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator==(), operator^(), operator^=(), operator|(), operator~(), phi(), csl::SpeakerLayout::readSpeakerFile(), rotateBy(), set(), setAzimuth(), setdim(), setElevation(), csl::ShoeBox::setListenerLocation(), setMagnitude(), csl::ShoeBox::setRoomSize(), csl::ShoeBox::setSourceLocation(), theta(), and PMESource::update_position().
COORD_TYPE csl::CPoint::z |
Definition at line 41 of file CPoint.h.
Referenced by Orbit::calculate_absolute_position(), Orbit::calculate_orbital_params(), csl::ShoeBox::calculateReflections(), csl::ShoeBox::checkPositionValues(), CPoint(), distance(), distance2(), ele(), csl::ShoeBox::findNumReflectionsFromTime(), csl::SpeakerSetLayout::findSpeakerTriplets(), csl::VBAP::nextBuffer(), normalize(), operator!=(), operator()(), operator*(), operator*(), operator*=(), operator+(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator==(), operator^(), operator^=(), operator~(), phi(), csl::SpeakerLayout::readSpeakerFile(), set(), setdim(), setElevation(), csl::ShoeBox::setListenerLocation(), setMagnitude(), csl::ShoeBox::setRoomSize(), csl::ShoeBox::setSourceLocation(), and PMESource::update_position().