ATLAS Offline Software
Loading...
Searching...
No Matches
SbRotation.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7/*
8 *
9 * New file for VP1HEPVis
10 *
11 * taken from: http://fossies.org/dox/osc_vis_source_16.11.6/HEPVis_2include_2HEPVis_2SbRotation_8h_source.html
12 *
13 * R.M. Bianchi <rbianchi@cern.ch>
14 *
15 * 12.12.2012
16 *
17 *
18 */
19
20//---
21
22#ifndef HEPVis_SbRotation_h
23#define HEPVis_SbRotation_h
24
25// Code taken from CoinGL/SbRotation but by using doubles instead of floats.
26// It is used by SbPolyhedron::Transform.
27
28#include <Inventor/C/errors/debugerror.h>
29#include <Inventor/SbVec4d.h>
30
31class SbVec3d;
32
33namespace HEPVis {
34
36public:
37 SbRotation();
38 SbRotation(const SbVec3d& axis,double radians);
39 SbRotation(double a11, double a12,double a13, double a14,
40 double a21, double a22,double a23, double a24,
41 double a31, double a32,double a33, double a34,
42 double a41, double a42,double a43, double a44);
43public:
44 //SbRotation& operator*=(const double s);
45 void multVec(const SbVec3d& src,SbVec3d& dst) const;
46private:
47 SbVec4d m_quat;
48};
49
50}
51
52#endif
void multVec(const SbVec3d &src, SbVec3d &dst) const