CLHEP 2.0.4.7 Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

testThreeVector.cc File Reference

#include "CLHEP/Vector/ThreeVector.h"
#include "CLHEP/Vector/Rotation.h"
#include "CLHEP/Units/PhysicalConstants.h"
#include <cmath>
#include <iostream>
#include <stdlib.h>

Go to the source code of this file.

Defines

#define DEPS   1.0e-14
#define FEPS   1.0e-6

Functions

bool approx (double a, double b, double eps)
bool test (const Hep3Vector &p, double x, double y, double z, double eps)
int main ()


Define Documentation

#define DEPS   1.0e-14

Definition at line 23 of file testThreeVector.cc.

#define FEPS   1.0e-6

Definition at line 24 of file testThreeVector.cc.


Function Documentation

bool approx ( double  a,
double  b,
double  eps 
)

Definition at line 26 of file testThreeVector.cc.

int main (  ) 

Definition at line 37 of file testThreeVector.cc.

References CLHEP::Hep3Vector::angle(), approx(), CLHEP::Hep3Vector::cosTheta(), CLHEP::Hep3Vector::cross(), DEPS, CLHEP::Hep3Vector::dot(), exit, f(), FEPS, CLHEP::HepRotation::inverse(), CLHEP::HepRotation::invert(), CLHEP::Hep3Vector::mag(), CLHEP::Hep3Vector::mag2(), CLHEP::Hep3Vector::perp(), CLHEP::Hep3Vector::perp2(), CLHEP::Hep3Vector::phi(), CLHEP::HepRotation::rotate(), CLHEP::Hep3Vector::rotate(), CLHEP::HepRotation::rotateY(), CLHEP::Hep3Vector::rotateY(), CLHEP::HepRotation::rotateZ(), CLHEP::Hep3Vector::rotateZ(), test(), and CLHEP::Hep3Vector::theta().

bool test ( const Hep3Vector p,
double  x,
double  y,
double  z,
double  eps 
)

Definition at line 31 of file testThreeVector.cc.

References approx(), CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().


Generated on Thu Jul 1 22:02:31 2010 for CLHEP by  doxygen 1.4.7