#include <CFCir.h>
Definition at line 3 of file CFCir.h.
◆ CFCir() [1/3]
◆ CFCir() [2/3]
CFCir::CFCir |
( |
double | x, |
|
|
double | y, |
|
|
double | phi, |
|
|
int | n, |
|
|
double | centerX, |
|
|
double | centerY, |
|
|
double | centerR ) |
Definition at line 8 of file CFCir.cxx.
8 :_x(x),_y(
y),_phi(phi),_n(
n),_centerX(centerX),_centerY(centerY),_centerR(centerR)
9{
10 double normal = (
y-_centerY)/(x-centerX);
11 double k = -1./normal;
13 double x_cross = -
b/(k+1/k);
14 double y_cross =
b/(1+k*k);
15
16
17
18
19 double rho_temp=sqrt(x_cross*x_cross+y_cross*y_cross);
20 double theta_temp=atan2(y_cross,x_cross);
21 if(theta_temp<0) {
22 theta_temp=theta_temp+
M_PI;
23 rho_temp=-rho_temp;
24 }
25 if( normal ==0 && x>0) {
26 rho_temp = fabs(x);
27 theta_temp = 0;
28 }
29 if( normal ==0 && x<0) {
30 rho_temp = -fabs(x);
32 }
33 _theta = theta_temp;
34 _rho = rho_temp;
35 double slant = _y*
cos(_theta)-_x*
sin(_theta);
36 _slant = slant;
37
38
39}
double sin(const BesAngle a)
double cos(const BesAngle a)
◆ CFCir() [3/3]
CFCir::CFCir |
( |
const CFCir & | cir | ) |
|
Definition at line 63 of file CFCir.cxx.
63 :
64 _x(cir._x),
65 _y(cir._y),
66 _phi(cir._phi),
67 _n(cir._n),
68
69 _theta(cir._theta),
70 _rho(cir._rho),
71 _centerX(cir._centerX),
72 _centerY(cir._centerY),
73 _centerR(cir._centerR),
74 _slant (cir._slant)
75{}
◆ getCenterR()
double CFCir::getCenterR |
( |
| ) |
const |
|
inline |
◆ getCenterX()
double CFCir::getCenterX |
( |
| ) |
const |
|
inline |
◆ getCenterY()
double CFCir::getCenterY |
( |
| ) |
const |
|
inline |
◆ getn()
int CFCir::getn |
( |
| ) |
const |
|
inline |
◆ getphi()
double CFCir::getphi |
( |
| ) |
const |
|
inline |
◆ getRho()
double CFCir::getRho |
( |
| ) |
const |
|
inline |
◆ getSlant()
double CFCir::getSlant |
( |
| ) |
const |
|
inline |
◆ getTheta()
double CFCir::getTheta |
( |
| ) |
const |
|
inline |
◆ getx()
double CFCir::getx |
( |
| ) |
const |
|
inline |
◆ gety()
double CFCir::gety |
( |
| ) |
const |
|
inline |
◆ operator=()
Definition at line 49 of file CFCir.cxx.
49 {
50 _x =cir._x;
51 _y =cir._y;
52 _phi=cir._phi;
53 _n =cir._n;
54
55 _theta =cir._theta;
56 _rho =cir._rho;
57 _centerX =cir._centerX;
58 _centerY =cir._centerY;
59 _centerR =cir._centerR;
60 _slant =cir._slant;
61}
The documentation for this class was generated from the following files: