#include <BesAngle.h>
Public Member Functions | |
double | arc (double radius) const |
double | arc (double radius) const |
BesAngle (const double) | |
BesAngle () | |
BesAngle (const double) | |
BesAngle () | |
double | Deg () const |
double | deg () const |
double | Deg () const |
double | deg () const |
BesAngle | operator * (const double) const |
BesAngle | operator * (const double) const |
void | operator *= (double) |
void | operator *= (double) |
operator double () const | |
operator double () const | |
BesAngle | operator+ (const double) const |
BesAngle | operator+ (const BesAngle &) const |
BesAngle | operator+ (const double) const |
BesAngle | operator+ (const BesAngle &) const |
void | operator+= (double) |
void | operator+= (BesAngle) |
void | operator+= (double) |
void | operator+= (BesAngle) |
BesAngle | operator- (const double) const |
BesAngle | operator- (const BesAngle &) const |
BesAngle | operator- (const double) const |
BesAngle | operator- (const BesAngle &) const |
void | operator-= (double) |
void | operator-= (BesAngle) |
void | operator-= (double) |
void | operator-= (BesAngle) |
BesAngle | operator/ (const double) const |
BesAngle | operator/ (const double) const |
void | operator/= (double) |
void | operator/= (double) |
void | operator= (const BesAngle) |
void | operator= (const BesAngle) |
double | posDeg () const |
double | posDeg () const |
double | posRad () const |
double | posRad () const |
double | Rad () const |
double | rad () const |
double | Rad () const |
double | rad () const |
int | Sector (int max, BesAngle phi_0) |
int | Sector (int max) |
int | sector (int max, BesAngle phi_0) |
int | sector (int max) |
int | Sector (int max, BesAngle phi_0) |
int | Sector (int max) |
int | sector (int max, BesAngle phi_0) |
int | sector (int max) |
void | setDeg (const double) |
void | setDeg (const double) |
void | setRad (const double) |
void | setRad (const double) |
void | setSector (int n, int max, BesAngle phi_0) |
void | setSector (int n, int max) |
void | setSector (int n, int max, BesAngle phi_0) |
void | setSector (int n, int max) |
~BesAngle () | |
~BesAngle () | |
Static Public Attributes | |
const double | pi = Constants::pi |
used instead. | |
const double | twoPi = Constants::twoPi |
Static Protected Member Functions | |
double | normalize (double) |
double | normalize (double) |
Protected Attributes | |
double | _phi |
Static Protected Attributes | |
const double | toDegrees = Constants::radToDegrees |
Friends | |
double | cos (const BesAngle) |
double | cos (const BesAngle) |
BesAngle | operator * (const double, const BesAngle &) |
BesAngle | operator * (const double, const BesAngle &) |
double | sin (const BesAngle) |
double | sin (const BesAngle) |
double | tan (const BesAngle) |
double | tan (const BesAngle) |
|
00110 : _phi(0) 00111 { }
|
|
|
|
00116 {}
|
|
|
|
|
|
|
|
|
|
00140 { return radius * rad(); }
|
|
00079 { return deg(); }
|
|
|
|
00079 { return deg(); }
|
|
00122 { return _phi * Constants::radToDegrees; }
|
|
|
|
00098 { 00099 if (angle < - Constants::pi) { 00100 angle += Constants::twoPi; 00101 if (angle < - Constants::pi) angle = fmod(angle+ Constants::pi, Constants::twoPi) + Constants::pi; 00102 } 00103 else if (angle > Constants::pi) { 00104 angle -= Constants::twoPi; 00105 if (angle > Constants::pi) angle = fmod(angle+Constants::pi, Constants::twoPi) - Constants::pi; 00106 } 00107 return angle; 00108 }
|
|
|
|
00161 { return BesAngle(_phi * x); }
|
|
|
|
|
|
00024 { return _phi;}; // automatic conversion to double
|
|
00024 { return _phi;}; // automatic conversion to double
|
|
|
|
|
|
00152 { return BesAngle(_phi + a); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00158 { return BesAngle(_phi - a); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00164 { return BesAngle(_phi / x); }
|
|
|
|
|
|
|
|
|
|
|
|
00131 { return posRad() * Constants::radToDegrees; }
|
|
|
|
|
|
00078 { return rad(); }
|
|
|
|
00078 { return rad(); }
|
|
00119 { return _phi; }
|
|
00082 { return sector(max, phi_0); }
|
|
00081 { return sector(max); }
|
|
|
|
|
|
00082 { return sector(max, phi_0); }
|
|
00081 { return sector(max); }
|
|
|
|
00198 { 00199 double phi = _phi; 00200 if (phi < 0) phi += Constants::twoPi; 00201 return ( int (phi / (Constants::twoPi / max) ) + 1 ); 00202 }
|
|
|
|
00137 { setRad(phi / Constants::radToDegrees); }
|
|
|
|
|
|
|
|
|
|
|
|
00143 { setRad((n + 0.5) * Constants::twoPi / max); }
|
|
00214 { return cos(a._phi); }
|
|
00214 { return cos(a._phi); }
|
|
00167 { return BesAngle(a * x); }
|
|
00167 { return BesAngle(a * x); }
|
|
00211 { return sin(a._phi); }
|
|
00211 { return sin(a._phi); }
|
|
00217 { return tan(a._phi); }
|
|
00217 { return tan(a._phi); }
|
|
|
|
used instead.
|
|
|
|
|