/usr/include/CLHEP/Vector/EulerAngles.icc is in libclhep-dev 2.1.2.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | #ifndef EULERANGLES_ICC
#error "EulerAngles.icc included without EulerAngles.h"
#endif
// ----------------------------------------------------------------------
//
// EulerAngles.icc - Inline methods for EulerAngles class.
//
// History:
// 9-Apr-1997 MF Split off from original angles.hh. Content-free.
// 26-Jan-1998 WEB Fleshed out.
// 12-Mar-1998 WEB Gave default constructor proper default values
// 13-Mar-1998 WEB Simplified compare()
// 17-Jun-1998 WEB Added namespace support
// 27-Jul-2000 MF CLHEP version
//
// ----------------------------------------------------------------------
namespace CLHEP {
inline HepEulerAngles::HepEulerAngles()
: phi_( 0.0 ), theta_( 0.0 ), psi_( 0.0 )
{} // HepEulerAngles::HepEulerAngles()
inline HepEulerAngles::HepEulerAngles (
double phi1, double ttheta, double psi1 )
: phi_( phi1 ), theta_( ttheta ), psi_( psi1 )
{} // HepEulerAngles::HepEulerAngles()
inline double HepEulerAngles::getPhi() const {
return phi_;
} // HepEulerAngles::getPhi()
inline double HepEulerAngles::phi() const {
return phi_;
} // HepEulerAngles::phi()
inline HepEulerAngles & HepEulerAngles::setPhi( double phi1 ) {
phi_ = phi1;
return *this;
} // HepEulerAngles::setPhi()
inline double HepEulerAngles::getTheta() const {
return theta_;
} // HepEulerAngles::getTheta()
inline double HepEulerAngles::theta() const {
return theta_;
} // HepEulerAngles::theta()
inline HepEulerAngles & HepEulerAngles::setTheta( double ttheta ) {
theta_ = ttheta;
return *this;
} // HepEulerAngles::setTheta()
inline double HepEulerAngles::getPsi() const {
return psi_;
} // HepEulerAngles::getPsi()
inline double HepEulerAngles::psi() const {
return psi_;
} // HepEulerAngles::psi()
inline HepEulerAngles & HepEulerAngles::setPsi( double psi1 ) {
psi_ = psi1;
return *this;
} // HepEulerAngles::setPsi()
inline HepEulerAngles &
HepEulerAngles::set( double phi1, double ttheta, double psi1 ) {
phi_ = phi1, theta_ = ttheta, psi_ = psi1;
return *this;
} // HepEulerAngles::set()
inline int HepEulerAngles::compare( const HepEulerAngles & ea ) const {
return phi_ < ea.phi_ ? -1
: phi_ > ea.phi_ ? +1
: theta_ < ea.theta_ ? -1
: theta_ > ea.theta_ ? +1
: psi_ < ea.psi_ ? -1
: psi_ > ea.psi_ ? +1
: 0;
} // HepEulerAngles::compare()
inline bool HepEulerAngles::operator==( const HepEulerAngles & ea ) const {
return ( compare( ea ) == 0 );
} // HepEulerAngles::operator==()
inline bool HepEulerAngles::operator!=( const HepEulerAngles & ea ) const {
return ( compare( ea ) != 0 );
} // HepEulerAngles::operator!=()
inline bool HepEulerAngles::operator<( const HepEulerAngles & ea ) const {
return ( compare( ea ) < 0 );
} // HepEulerAngles::operator<()
inline bool HepEulerAngles::operator<=( const HepEulerAngles & ea ) const {
return ( compare( ea ) <= 0 );
} // HepEulerAngles::operator<=()
inline bool HepEulerAngles::operator>( const HepEulerAngles & ea ) const {
return ( compare( ea ) > 0 );
} // HepEulerAngles::operator>()
inline bool HepEulerAngles::operator>=( const HepEulerAngles & ea ) const {
return ( compare( ea ) >= 0 );
} // HepEulerAngles::operator>=()
inline double HepEulerAngles::getTolerance() {
return tolerance;
} // HepEulerAngles::getTolerance()
inline double HepEulerAngles::setTolerance( double tol ) {
double oldTolerance( tolerance );
tolerance = tol;
return oldTolerance;
} // HepEulerAngles::setTolerance()
} // namespace CLHEP
|