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.

Macros

#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 ()
 

Macro Definition Documentation

◆ DEPS

#define DEPS   1.0e-14

Definition at line 24 of file testThreeVector.cc.

Referenced by main().

◆ FEPS

#define FEPS   1.0e-6

Definition at line 25 of file testThreeVector.cc.

Referenced by main().

Function Documentation

◆ approx()

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

Definition at line 27 of file testThreeVector.cc.

References a, and b.

Referenced by main(), test(), and test2().

◆ main()

◆ test()

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().

Referenced by main().

◆ test2()

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().