CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
testBasicVector3D.cc File Reference
#include "CLHEP/Geometry/Point3D.h"
#include "CLHEP/Geometry/Vector3D.h"
#include "CLHEP/Geometry/Normal3D.h"
#include "CLHEP/Geometry/Transform3D.h"
#include "CLHEP/Units/PhysicalConstants.h"
#include <assert.h>
#include <cmath>
#include <iostream>

Go to the source code of this file.

Macros

#define CHECK(point, type)
 

Functions

bool EQUAL (double a, double b)
 
void CheckPointFloat ()
 
void CheckVectorFloat ()
 
void CheckNormalFloat ()
 
void CheckPointDouble ()
 
void CheckVectorDouble ()
 
void CheckNormalDouble ()
 
int main ()
 

Macro Definition Documentation

◆ CHECK

#define CHECK (   point,
  type 
)

Definition at line 24 of file testBasicVector3D.cc.

Function Documentation

◆ CheckNormalDouble()

void CheckNormalDouble ( )

Definition at line 233 of file testBasicVector3D.cc.

233{ CHECK(Normal3D<double>, double) }
#define CHECK(point, type)

Referenced by main().

◆ CheckNormalFloat()

void CheckNormalFloat ( )

Definition at line 230 of file testBasicVector3D.cc.

230{ CHECK(Normal3D<float> , float) }

Referenced by main().

◆ CheckPointDouble()

void CheckPointDouble ( )

Definition at line 231 of file testBasicVector3D.cc.

231{ CHECK(Point3D<double> , double) }

Referenced by main().

◆ CheckPointFloat()

void CheckPointFloat ( )

Definition at line 228 of file testBasicVector3D.cc.

228{ CHECK(Point3D<float> , float) }

Referenced by main().

◆ CheckVectorDouble()

void CheckVectorDouble ( )

Definition at line 232 of file testBasicVector3D.cc.

Referenced by main().

◆ CheckVectorFloat()

void CheckVectorFloat ( )

Definition at line 229 of file testBasicVector3D.cc.

229{ CHECK(Vector3D<float> , float) }

Referenced by main().

◆ EQUAL()

bool EQUAL ( double  a,
double  b 
)

Definition at line 15 of file testBasicVector3D.cc.

15 {
16 double del = a - b;
17 if (del < 0) del = -del;
18 return del < 0.000001;
19}

◆ main()

int main ( )

Definition at line 235 of file testBasicVector3D.cc.

236{
243 return 0;
244}
void CheckVectorDouble()
void CheckPointDouble()
void CheckNormalDouble()
void CheckVectorFloat()
void CheckPointFloat()
void CheckNormalFloat()