#include <EvtVector3C.hh>
Definition at line 29 of file EvtVector3C.hh.
EvtVector3C::EvtVector3C | ( | ) |
Definition at line 31 of file EvtVector3C.cc.
References v.
Referenced by conj().
00031 { 00032 00033 v[0]=EvtComplex(0.0); v[1]=EvtComplex(0.0); v[2]=EvtComplex(0.0); 00034 }
EvtVector3C::EvtVector3C | ( | const EvtComplex & | , | |
const EvtComplex & | , | |||
const EvtComplex & | ||||
) |
EvtVector3C::~EvtVector3C | ( | ) | [virtual] |
EvtVector3C::EvtVector3C | ( | const EvtVector3R & | v1 | ) | [inline] |
Definition at line 68 of file EvtVector3C.hh.
References EvtVector3R::get(), and v.
00068 { 00069 00070 v[0]=EvtComplex(v1.get(0),0.0); 00071 v[1]=EvtComplex(v1.get(1),0.0); 00072 v[2]=EvtComplex(v1.get(2),0.0); 00073 00074 }
void EvtVector3C::applyRotateEuler | ( | double | phi, | |
double | theta, | |||
double | ksi | |||
) |
Definition at line 71 of file EvtVector3C.cc.
References cos(), sin(), subSeperate::temp, and v.
Referenced by rotateEuler().
00071 { 00072 00073 EvtComplex temp[3]; 00074 double sp,st,sk,cp,ct,ck; 00075 00076 sp=sin(phi); 00077 st=sin(theta); 00078 sk=sin(ksi); 00079 cp=cos(phi); 00080 ct=cos(theta); 00081 ck=cos(ksi); 00082 00083 temp[0]=( ck*ct*cp-sk*sp)*v[0]+( -sk*ct*cp-ck*sp)*v[1]+st*cp*v[2]; 00084 temp[1]=( ck*ct*sp+sk*cp)*v[0]+(-sk*ct*sp+ck*cp)*v[1]+st*sp*v[2]; 00085 temp[2]=-ck*st*v[0]+sk*st*v[1]+ct*v[2]; 00086 00087 00088 v[0]=temp[0]; 00089 v[1]=temp[1]; 00090 v[2]=temp[2]; 00091 }
EvtVector3C EvtVector3C::conj | ( | ) | const [inline] |
Definition at line 171 of file EvtVector3C.hh.
References EvtVector3C(), and v.
Referenced by EvtVVSPwave::decay(), EvtVVP::decay(), and EvtSVVHelAmp::SVVHel().
EvtVector3C EvtVector3C::cross | ( | const EvtVector3C & | v2 | ) |
Definition at line 48 of file EvtVector3C.cc.
References subSeperate::temp, and v.
00048 { 00049 00050 //Calcs the cross product. Added by djl on July 27, 1995. 00051 00052 EvtVector3C temp; 00053 00054 temp.v[0] = v[1]*p2.v[2] - v[2]*p2.v[1]; 00055 temp.v[1] = v[2]*p2.v[0] - v[0]*p2.v[2]; 00056 temp.v[2] = v[0]*p2.v[1] - v[1]*p2.v[0]; 00057 00058 return temp; 00059 }
double EvtVector3C::dot | ( | const EvtVector3C & | p2 | ) |
const EvtComplex & EvtVector3C::get | ( | int | ) | const [inline] |
EvtVector3C & EvtVector3C::operator *= | ( | const EvtComplex & | c | ) | [inline] |
EvtVector3C & EvtVector3C::operator+= | ( | const EvtVector3C & | v2 | ) | [inline] |
EvtVector3C & EvtVector3C::operator-= | ( | const EvtVector3C & | v2 | ) | [inline] |
EvtVector3C & EvtVector3C::operator/= | ( | const EvtComplex & | c | ) | [inline] |
void EvtVector3C::set | ( | double | , | |
double | , | |||
double | ||||
) | [inline] |
Definition at line 88 of file EvtVector3C.hh.
References v.
00089 { 00090 00091 v[0]=EvtComplex(x); v[1]=EvtComplex(y); v[2]=EvtComplex(z); 00092 }
void EvtVector3C::set | ( | const EvtComplex & | , | |
const EvtComplex & | , | |||
const EvtComplex & | ||||
) | [inline] |
void EvtVector3C::set | ( | const | int, | |
const EvtComplex & | ||||
) | [inline] |
EvtVector3C operator * | ( | const EvtVector3C & | v1, | |
const EvtComplex & | c | |||
) | [friend] |
Definition at line 141 of file EvtVector3C.hh.
00141 { 00142 00143 return EvtVector3C(v1)*=c; 00144 }
EvtComplex operator * | ( | const EvtVector3C & | v1, | |
const EvtVector3C & | v2 | |||
) | [friend] |
EvtComplex operator * | ( | const EvtVector3C & | v1, | |
const EvtVector3R & | v2 | |||
) | [friend] |
EvtComplex operator * | ( | const EvtVector3R & | v1, | |
const EvtVector3C & | v2 | |||
) | [friend] |
EvtVector3C operator * | ( | const EvtComplex & | c, | |
const EvtVector3R & | v2 | |||
) | [friend] |
Definition at line 151 of file EvtVector3C.hh.
00151 { 00152 00153 return EvtVector3C(v2)*=c; 00154 }
EvtVector3C operator * | ( | const EvtComplex & | c, | |
const EvtVector3C & | v2 | |||
) | [friend] |
Definition at line 146 of file EvtVector3C.hh.
00146 { 00147 00148 return EvtVector3C(v2)*=c; 00149 }
EvtVector3C operator+ | ( | const EvtVector3C & | v1, | |
const EvtVector3C & | v2 | |||
) | [friend] |
Definition at line 131 of file EvtVector3C.hh.
00131 { 00132 00133 return EvtVector3C(v1)+=v2; 00134 }
EvtVector3C operator- | ( | const EvtVector3C & | v1, | |
const EvtVector3C & | v2 | |||
) | [friend] |
Definition at line 136 of file EvtVector3C.hh.
00136 { 00137 00138 return EvtVector3C(v1)-=v2; 00139 }
std::ostream& operator<< | ( | std::ostream & | c, | |
const EvtVector3C & | v | |||
) | [friend] |
EvtVector3C rotateEuler | ( | const EvtVector3C & | v, | |
double | phi, | |||
double | theta, | |||
double | ksi | |||
) | [friend] |
Definition at line 61 of file EvtVector3C.cc.
00062 { 00063 00064 EvtVector3C tmp(v); 00065 tmp.applyRotateEuler(alpha,beta,gamma); 00066 return tmp; 00067 00068 }
EvtComplex EvtVector3C::v[3] [private] |
Definition at line 65 of file EvtVector3C.hh.
Referenced by applyRotateEuler(), conj(), cross(), EvtVector3C(), get(), operator *(), operator *=(), operator+=(), operator-=(), operator/=(), and set().