|
|
Go to the documentation of this file. 1 #ifndef Geom_oldTkRotation_H
2 #define Geom_oldTkRotation_H
136 template <
typename U>
212 return *
this =
b.operator * (*this);
228 fabs(newX.
mag2()-1.) > del ||
229 fabs(newY.
mag2()-1.) > del ||
230 fabs(newZ.
mag2()-1.) > del ||
231 fabs(newX.
dot(newY)) > del ||
232 fabs(newY.
dot(newZ)) > del ||
233 fabs(newZ.
dot(newX)) > del) {
238 newX.
y(), newY.
y(), newZ.
y(),
239 newX.
z(), newY.
z(), newZ.
z()));
273 template <
class T,
class U>
276 r.yx()*
v.x() +
r.yy()*
v.y() +
r.yz()*
v.z(),
277 r.zx()*
v.x() +
r.zy()*
v.y() +
r.zz()*
v.z());
280 template <
class T,
class U>
284 return RT(
a.xx()*
b.xx() +
a.xy()*
b.yx() +
a.xz()*
b.zx(),
285 a.xx()*
b.xy() +
a.xy()*
b.yy() +
a.xz()*
b.zy(),
286 a.xx()*
b.xz() +
a.xy()*
b.yz() +
a.xz()*
b.zz(),
287 a.yx()*
b.xx() +
a.yy()*
b.yx() +
a.yz()*
b.zx(),
288 a.yx()*
b.xy() +
a.yy()*
b.yy() +
a.yz()*
b.zy(),
289 a.yx()*
b.xz() +
a.yy()*
b.yz() +
a.yz()*
b.zz(),
290 a.zx()*
b.xx() +
a.zy()*
b.yx() +
a.zz()*
b.zx(),
291 a.zx()*
b.xy() +
a.zy()*
b.yy() +
a.zz()*
b.zy(),
292 a.zx()*
b.xz() +
a.zy()*
b.yz() +
a.zz()*
b.zz());
Geom::Theta< T > theta() const
Basic3DVector< T > rotateBack(const Basic3DVector< T > &v) const
TkRotation2D(T xx, T xy, T yx, T yy)
TkRotation & operator*=(const TkRotation &b)
BasicVector rotateBack(const BasicVector &v) const
Basic3DVector< T > multiplyInverse(const Basic3DVector< T > &v) const
TkRotation operator*(const TkRotation &b) const
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
Sin< T >::type sin(const T &t)
T y() const
Cartesian y coordinate.
Vector3DBase unit() const
Cos< T >::type cos(const T &t)
T y() const
Cartesian y coordinate.
Basic3DVector< T > operator*(const Basic2DVector< T > &v) const
T dot(const Basic3DVector &rh) const
Scalar product, or "dot" product, with a vector of same type.
T x() const
Cartesian x coordinate.
TkRotation(const GlobalVector &aX, const GlobalVector &aY)
BasicVector rotate(const BasicVector &v) const
Basic2DVector< T > BasicVector
TkRotation multiplyInverse(const TkRotation &b) const
TkRotation(const Basic3DVector< T > &axis, T phi)
Vector3DBase< typename PreciseFloatType< T, U >::Type, FrameTag > cross(const Vector3DBase< U, FrameTag > &v) const
Basic3DVector< U > operator*(const TkRotation< T > &r, const Basic3DVector< U > &v)
TkRotation & transform(const TkRotation &b)
TkRotation2D(const BasicVector &aX)
Vector3DBase< T, GlobalTag > GlobalVector
Basic2DVector unit() const
TkRotation(const GlobalVector &aX, const GlobalVector &aY, const GlobalVector &aZ)
Basic3DVector< T > y() const
Basic3DVector< T > rotate(const Basic3DVector< T > &v) const
std::ostream & operator<<(std::ostream &s, const TkRotation< T > &r)
TkRotation(const TkRotation< U > &a)
TkRotation & rotateAxes(const Basic3DVector< T > &newX, const Basic3DVector< T > &newY, const Basic3DVector< T > &newZ)
T x() const
Cartesian x coordinate.
std::ostream & operator<<< float >(std::ostream &s, const TkRotation< float > &r)
TkRotation transposed() const
Basic3DVector< T > x() const
TkRotation(T xx, T xy, T xz, T yx, T yy, T yz, T zx, T zy, T zz)
T z() const
Cartesian z coordinate.
Geom::Phi< T > phi() const
TkRotation2D transposed() const
std::ostream & operator<<< double >(std::ostream &s, const TkRotation< double > &r)
TkRotation2D(const BasicVector &uX, const BasicVector &uY)
Basic3DVector< T > z() const
Basic3DVector< T > operator*(const Basic3DVector< T > &v) const
Basic3DVector< T > multiplyInverse(const Basic2DVector< T > &v) const