#include <cmath>
Go to the source code of this file.
Functions | |
template<typename T1, typename T2> | |
double | angle (const T1 &t1, const T2 &t2) |
template<class T> | |
T | angle (T x1, T y1, T z1, T x2, T y2, T z2) |
double angle | ( | const T1 & | t1, | |
const T2 & | t2 | |||
) | [inline] |
T angle | ( | T | x1, | |
T | y1, | |||
T | z1, | |||
T | x2, | |||
T | y2, | |||
T | z2 | |||
) | [inline] |
Definition at line 11 of file angle.h.
References funct::sqrt().
Referenced by VisEventSetupService::addDescription(), VisDTDigiTwig::addDescription(), VisEventSetupService::addWafer(), VisTrackingGeometry::addWafer(), VisDTDigiTwig::addWire(), VisDTRecHitsTwig::addWire(), RPCMonitorEfficiency::analyze(), angle(), ThirdHitPrediction::calculateRangesBarrel(), ThirdHitPrediction::calculateRangesForward(), DTParametrizedDriftAlgo::compute(), RPCStripsRing::createRefConnections(), MuonAlignmentInputXML::do_rotatelocal(), EcalHitMaker::ecalCellLine(), DDHCalXtalAlgo::execute(), SiStripFineDelayTLA::findtrackangle(), HLTMuonRate::getAngle(), TauVariables::makeVariables(), IgSoSplineTrack::midpoint(), Angle< math::XYZTLorentzVectorD >::operator()(), DDLRotationByAxis::processElement(), AlCaHOCalibProducer::produce(), IgSoRectColHist::projectPoint(), IgSoIdealTrack::refresh(), global_simpleAngular_2::rotation(), global_simpleAngular_1::rotation(), global_simpleAngular_0::rotation(), global_angular_0::rotation(), DTLocalTriggerTask::runDCCAnalysis(), Ig2DViewPropertiesCategory::setCuttingPlane(), IgSoIdealTrack::timeToXY(), global_angular_0::translation(), VisCSCStripDigiTwig::update(), VisCSCComparatorDigiTwig::update(), VisCSCCorrelatedLCTDigiTwig::update(), VisRPCDigiTwig::update(), VisCSCCLCTDigiTwig::update(), VisCSCWireDigiTwig::update(), GflashG4Watcher::update(), DTSegmentUpdator::updateHits(), Ig2DBrowser::viewPlaneX(), Ig2DBrowser::viewPlaneY(), and Ig2DBrowser::viewPlaneZ().
00011 { 00012 return acos((x1*x2 + y1*y2 + z1*z2)/sqrt((x1*x1 + y1*y1 + z1*z1)*(x2*x2 + y2*y2 + z2*z2))); 00013 }