#include <CFCir.h>
|
| CFCir () |
|
| CFCir (double x, double y, double phi, int n, double, double, double) |
|
| CFCir (const CFCir &) |
|
CFCir & | operator= (const CFCir &) |
|
double | getx () const |
|
double | gety () const |
|
double | getphi () const |
|
int | getn () const |
|
double | getTheta () const |
|
double | getRho () const |
|
double | getSlant () const |
|
double | getCenterX () const |
|
double | getCenterY () const |
|
double | getCenterR () const |
|
| CFCir () |
|
| CFCir (double x, double y, double phi, int n, double, double, double) |
|
| CFCir (const CFCir &) |
|
CFCir & | operator= (const CFCir &) |
|
double | getx () const |
|
double | gety () const |
|
double | getphi () const |
|
int | getn () const |
|
double | getTheta () const |
|
double | getRho () const |
|
double | getSlant () const |
|
double | getCenterX () const |
|
double | getCenterY () const |
|
double | getCenterR () const |
|
◆ CFCir() [1/6]
◆ CFCir() [2/6]
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/6]
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{}
◆ CFCir() [4/6]
◆ CFCir() [5/6]
CFCir::CFCir |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
phi, |
|
|
int |
n, |
|
|
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
| |
◆ CFCir() [6/6]
CFCir::CFCir |
( |
const CFCir & |
| ) |
|
◆ getCenterR() [1/2]
double CFCir::getCenterR |
( |
| ) |
const |
|
inline |
◆ getCenterR() [2/2]
double CFCir::getCenterR |
( |
| ) |
const |
|
inline |
◆ getCenterX() [1/2]
double CFCir::getCenterX |
( |
| ) |
const |
|
inline |
◆ getCenterX() [2/2]
double CFCir::getCenterX |
( |
| ) |
const |
|
inline |
◆ getCenterY() [1/2]
double CFCir::getCenterY |
( |
| ) |
const |
|
inline |
◆ getCenterY() [2/2]
double CFCir::getCenterY |
( |
| ) |
const |
|
inline |
◆ getn() [1/2]
int CFCir::getn |
( |
| ) |
const |
|
inline |
◆ getn() [2/2]
int CFCir::getn |
( |
| ) |
const |
|
inline |
◆ getphi() [1/2]
double CFCir::getphi |
( |
| ) |
const |
|
inline |
◆ getphi() [2/2]
double CFCir::getphi |
( |
| ) |
const |
|
inline |
◆ getRho() [1/2]
double CFCir::getRho |
( |
| ) |
const |
|
inline |
◆ getRho() [2/2]
double CFCir::getRho |
( |
| ) |
const |
|
inline |
◆ getSlant() [1/2]
double CFCir::getSlant |
( |
| ) |
const |
|
inline |
◆ getSlant() [2/2]
double CFCir::getSlant |
( |
| ) |
const |
|
inline |
◆ getTheta() [1/2]
double CFCir::getTheta |
( |
| ) |
const |
|
inline |
◆ getTheta() [2/2]
double CFCir::getTheta |
( |
| ) |
const |
|
inline |
◆ getx() [1/2]
double CFCir::getx |
( |
| ) |
const |
|
inline |
◆ getx() [2/2]
double CFCir::getx |
( |
| ) |
const |
|
inline |
◆ gety() [1/2]
double CFCir::gety |
( |
| ) |
const |
|
inline |
◆ gety() [2/2]
double CFCir::gety |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
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}
◆ operator=() [2/2]
The documentation for this class was generated from the following files: