CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

testThreeVector.cc File Reference

#include "CLHEP/Units/GlobalSystemOfUnits.h"
#include "CLHEP/Units/GlobalPhysicalConstants.h"
#include "CLHEP/Vector/ThreeVector.h"
#include "CLHEP/Vector/TwoVector.h"
#include "CLHEP/Vector/Rotation.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)
bool test2 (const Hep2Vector &p, double x, double y, double eps)
int main ()


Define Documentation

#define DEPS   1.0e-14

Definition at line 24 of file testThreeVector.cc.

#define FEPS   1.0e-6

Definition at line 25 of file testThreeVector.cc.


Function Documentation

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

Definition at line 27 of file testThreeVector.cc.

int main (  ) 

Definition at line 43 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(), n_element_type::test(), test2(), and CLHEP::Hep3Vector::theta().

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

Definition at line 32 of file testThreeVector.cc.

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

bool test2 ( const Hep2Vector p,
double  x,
double  y,
double  eps 
)

Definition at line 39 of file testThreeVector.cc.

References approx(), CLHEP::Hep2Vector::x(), and CLHEP::Hep2Vector::y().


Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7