1 #ifndef RIVET_MATH_MATRIX3
2 #define RIVET_MATH_MATRIX3
4 #include "Rivet/Math/MathHeader.hh"
5 #include "Rivet/Math/MathUtils.hh"
6 #include "Rivet/Math/MatrixN.hh"
7 #include "Rivet/Math/Vector3.hh"
21 _matrix.loadRotation3(angle, normaxis._vec);
25 setAsRotation(from, to);
29 static Matrix3 mkXRotation(
const double angle) {
33 static Matrix3 mkYRotation(
const double angle) {
37 static Matrix3 mkZRotation(
const double angle) {
45 _matrix.loadIdentity();
48 _matrix.loadRotation3(theta, normaxis._vec);
Definition: MC_JetAnalysis.hh:9
double theta(const Vector3 &v)
Synonym for polarAngle.
Definition: Vector3.hh:290
Specialisation of MatrixN to aid 3 dimensional rotations.
Definition: Matrix3.hh:13
Vector3 unit() const
Definition: Vector3.hh:88
double angle(const Vector3 &a, const Vector3 &b)
Angle (in radians) between two 3-vectors.
Definition: Vector3.hh:244
General -dimensional mathematical matrix object.
Definition: MatrixN.hh:14
bool isZero(double val, double tolerance=1E-8)
Definition: MathUtils.hh:17
Three-dimensional specialisation of Vector.
Definition: Vector3.hh:26