#include "EvtGenBase/EvtPatches.hh"
#include <iostream>
#include <math.h>
#include "EvtGenBase/EvtVector3R.hh"
Go to the source code of this file.
Functions | |
EvtVector3R | rotateEuler (const EvtVector3R &v, double alpha, double beta, double gamma) |
ostream & | operator<< (ostream &s, const EvtVector3R &v) |
EvtVector3R | cross (const EvtVector3R &p1, const EvtVector3R &p2) |
EvtVector3R cross | ( | const EvtVector3R & | p1, | |
const EvtVector3R & | p2 | |||
) |
Definition at line 84 of file EvtVector3R.cc.
References EvtVector3R::v.
Referenced by Lpar::arcfun(), DifFourVector::boostFrom(), DifFourVector::boostFromMe(), DifFourVector::boostTo(), DifFourVector::boostToMe(), EmcRecGeoPlane::Build(), TrkDifPoca::calcDist(), EvtVVP::decay(), EvtOmegaDalitz::decay(), DifRotation::DifRotation(), EmcRecGeoPlane::EmcRecGeoPlane(), BeamParams::execute(), and TTrackManager::removeHitsAcrossOverIp().
00084 { 00085 00086 //Calcs the cross product. Added by djl on July 27, 1995. 00087 //Modified for real vectros by ryd Aug 28-96 00088 00089 return EvtVector3R(p1.v[1]*p2.v[2] - p1.v[2]*p2.v[1], 00090 p1.v[2]*p2.v[0] - p1.v[0]*p2.v[2], 00091 p1.v[0]*p2.v[1] - p1.v[1]*p2.v[0]); 00092 00093 }
ostream& operator<< | ( | ostream & | s, | |
const EvtVector3R & | v | |||
) |
EvtVector3R rotateEuler | ( | const EvtVector3R & | v, | |
double | alpha, | |||
double | beta, | |||
double | gamma | |||
) |
Definition at line 43 of file EvtVector3R.cc.
References EvtVector3R::applyRotateEuler(), and v.
00044 { 00045 00046 EvtVector3R tmp(v); 00047 tmp.applyRotateEuler(alpha,beta,gamma); 00048 return tmp; 00049 00050 }