mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-28 06:10:24 +08:00
16 lines
357 B
C++
16 lines
357 B
C++
#include "cRotationMatrix.h"
|
|
#include <cmath>
|
|
|
|
// eq:rotmat
|
|
cRotationMatrix::cRotationMatrix(const size_t size, const int i, const int j, const double phi)
|
|
: cOrthonormalMatrix(size), _data(size)
|
|
{
|
|
// the matrix is, at this stage, eye(size)
|
|
_data.RotateAlpha(i,j,phi);
|
|
}
|
|
|
|
const cOrthonormalMatrix& cRotationMatrix::Matrix() const
|
|
{
|
|
return _data;
|
|
}
|