#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) |
| double | operator* (CPoint) |
| double | operator| (CPoint) |
| CPoint | operator^ (CPoint) |
| CPoint & | operator*= (double) |
| CPoint & | operator/= (double) |
| CPoint & | operator+= (CPoint) |
| CPoint & | operator-= (CPoint) |
| CPoint & | operator^= (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) |
| 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] |
| csl::CPoint::~CPoint | ( | ) | [inline] |
| void csl::CPoint::set | ( | int | a, | |
| int | b | |||
| ) | [inline] |
| 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, | |||
| double | tele | |||
| ) | [inline] |
| void CPoint::setAzimuth | ( | double | taz | ) |
| void CPoint::setElevation | ( | double | tele | ) |
| void CPoint::setMagnitude | ( | double | tmag | ) |
| unsigned csl::CPoint::dim | ( | ) | [inline] |
References dimn.
Referenced by operator!=(), operator*(), operator+(), operator+(), operator+=(), operator-(), operator-=(), operator/(), and operator==().
| double CPoint::distance | ( | CPoint * | Q | ) |
| double CPoint::distance2 | ( | CPoint * | Q | ) |
Referenced by PME::check_for_grabbed_source(), and csl::HRTFDatabase::hrtfAt().
| double csl::CPoint::len | ( | ) | [inline] |
| double csl::CPoint::r | ( | ) | [inline] |
References len().
Referenced by csl::SpatialSource::distance(), dumpPol(), and csl::Speaker::radius().
| double CPoint::theta | ( | ) |
References CSL_PI, CSL_TWOPI, x, and y.
Referenced by csl::Speaker::azimuth(), csl::SpatialSource::azimuth(), csl::HRTF::dump(), dumpPol(), rotateBy(), and setElevation().
| double CPoint::ele | ( | ) |
Referenced by csl::HRTF::dump(), dumpPol(), csl::Speaker::elevation(), and csl::SpatialSource::elevation().
| void CPoint::rotateBy | ( | double | angle | ) |
| void csl::CPoint::dumpPol | ( | ) | [inline] |
References CSL_DEGS_PER_RAD, ele(), r(), and theta().
| void CPoint::normalize | ( | ) |
References len(), x, y, and z.
Referenced by Orbit::calculate_eccentricity(), csl::HRTFDatabase::hrtfAt(), csl::VBAP::nextBuffer(), and csl::Speaker::setRadius().
| unsigned csl::CPoint::dimn |
Referenced by CPoint(), dim(), operator!=(), operator*(), operator+(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator==(), operator^(), operator^=(), operator~(), set(), setdim(), and setMagnitude().
| double csl::CPoint::x |
Referenced by Orbit::calculate_absolute_position(), Orbit::calculate_orbital_params(), csl::ShoeBox::calculateReflections(), csl::ShoeBox::checkPositionValues(), CPoint(), distance(), distance2(), dump(), csl::ShoeBox::findNumReflectionsFromTime(), csl::SpeakerSetLayout::findSpeakerTriplets(), len(), len2(), 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().
| double csl::CPoint::y |
Referenced by Orbit::calculate_absolute_position(), Orbit::calculate_orbital_params(), csl::ShoeBox::calculateReflections(), csl::ShoeBox::checkPositionValues(), CPoint(), distance(), distance2(), dump(), csl::ShoeBox::findNumReflectionsFromTime(), csl::SpeakerSetLayout::findSpeakerTriplets(), len(), len2(), 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().
| double csl::CPoint::z |
Referenced by Orbit::calculate_absolute_position(), Orbit::calculate_orbital_params(), csl::ShoeBox::calculateReflections(), csl::ShoeBox::checkPositionValues(), CPoint(), distance(), distance2(), dump(), ele(), csl::ShoeBox::findNumReflectionsFromTime(), csl::SpeakerSetLayout::findSpeakerTriplets(), len(), len2(), 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().
1.5.8