VGM Version 5.3
Loading...
Searching...
No Matches
transform.h
Go to the documentation of this file.
1// $Id$
2
3// -----------------------------------------------------------------------
4// The ClhepVGM package of the Virtual Geometry Model
5// Copyright (C) 2007, Ivana Hrivnacova
6// All rights reserved.
7//
8// For the licensing terms see vgm/LICENSE.
9// Contact: ivana@ipno.in2p3.fr
10// -----------------------------------------------------------------------
11
13//
19
20#ifndef CLHEP_VGM_TRANSFORM_H
21#define CLHEP_VGM_TRANSFORM_H
22
24
25#include "CLHEP/Geometry/Transform3D.h"
26#include "CLHEP/Vector/Rotation.h"
27#include "CLHEP/Vector/ThreeVector.h"
28
29namespace ClhepVGM {
30
31// CLHEP -> VGM
32//
34 const CLHEP::HepRotation& rotation, const CLHEP::Hep3Vector& translation);
35VGM::Transform Transform(const HepGeom::Transform3D& objectTransform);
36VGM::Transform TransformScale(const HepGeom::Scale3D& scaleTransform);
38bool HasReflection(const HepGeom::Transform3D& transform);
39
40// VGM -> CLHEP
41//
42CLHEP::Hep3Vector Translation(const VGM::Transform& transform);
43CLHEP::HepRotation Rotation(const VGM::Transform& transform);
44HepGeom::Scale3D Scale(const VGM::Transform& transform);
45HepGeom::Transform3D Transform(const VGM::Transform& transform);
46bool HasReflection(const VGM::Transform& transform);
47
48// VGM
49//
50VGM::Transform Inverse(const VGM::Transform& transform);
51
52// Utility function
53double Round(double x);
54} // namespace ClhepVGM
55
56#endif // CLHEP_VGM_TRANSFORM_H
ClhepVGM utilities.
Definition transform.h:29
double Round(double x)
bool HasReflection(const HepGeom::Transform3D &transform)
VGM::Transform Identity()
Definition transform.cxx:98
VGM::Transform Inverse(const VGM::Transform &transform)
VGM::Transform Transform(const CLHEP::HepRotation &rotation, const CLHEP::Hep3Vector &translation)
Definition transform.cxx:26
CLHEP::Hep3Vector Translation(const VGM::Transform &transform)
CLHEP::HepRotation Rotation(const VGM::Transform &transform)
VGM::Transform TransformScale(const HepGeom::Scale3D &scaleTransform)
Definition transform.cxx:87
HepGeom::Scale3D Scale(const VGM::Transform &transform)
std::vector< double > Transform
Definition Transform.h:40