예제 #1
0
파일: Miller.cpp 프로젝트: cppxfel/cppxfel
void Miller::rotateMatrixHKL(double hRot, double kRot, double lRot, MatrixPtr oldMatrix, MatrixPtr *newMatrix)
{
    (*newMatrix) = oldMatrix->copy();
    
    double hRad = hRot * M_PI / 180;
    double kRad = kRot * M_PI / 180;
    double lRad = lRot * M_PI / 180;
    
    (*newMatrix)->rotate(hRad, kRad, lRad);
}
예제 #2
0
파일: Miller.cpp 프로젝트: cppxfel/cppxfel
void Miller::rotateMatrixABC(double aRot, double bRot, double cRot, MatrixPtr oldMatrix, MatrixPtr *newMatrix)
{
    (*newMatrix) = oldMatrix->copy();
    
    (*newMatrix)->rotateABC(oldMatrix, aRot, bRot, cRot);
}