OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
NullGeometry.cpp
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // $RCSfile: NullGeometry.cpp,v $
3 // ------------------------------------------------------------------------
4 // $Revision: 1.1.1.1 $
5 // ------------------------------------------------------------------------
6 // Copyright: see Copyright.readme
7 // ------------------------------------------------------------------------
8 //
9 // Class: NullGeometry
10 // A geometry representing an identity transform.
11 //
12 // ------------------------------------------------------------------------
13 // Class category: BeamlineGeometry
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:32:34 $
17 // $Author: fci $
18 //
19 // ------------------------------------------------------------------------
20 
23 
24 
25 // Class NullGeometry
26 // ------------------------------------------------------------------------
27 
29 {}
30 
31 
33  return 0.0;
34 }
35 
36 
38  return 0.0;
39 }
40 
41 
42 double NullGeometry::getOrigin() const {
43  return 0.0;
44 }
45 
46 
47 Euclid3D NullGeometry::getTransform(double, double) const {
48  return Euclid3D::identity();
49 }
50 
51 
53  return Euclid3D::identity();
54 }
55 
virtual double getOrigin() const
Get origin position.
virtual ~NullGeometry()
static Euclid3D identity()
Make identity.
Definition: Euclid3D.cpp:147
virtual Euclid3D getTransform(double fromS, double toS) const
Get transform.
Displacement and rotation in space.
Definition: Euclid3D.h:68
virtual double getArcLength() const
Get arc length.
virtual double getElementLength() const
Get design length.