Functions | |
void | initialize_rotation_matrix (BTKVector const &axis, double theta, BTKMatrix &rm) |
Initialize a pre-existing rotation matrix for rotation about an axis. | |
BTKMatrix | create_rotation_matrix (BTKVector const &axis, double theta) |
Create a rotation matrix for a rotation about an axis. |
These methods allow the rotation of objects around a vector or axis in 3D space. All angles are specified in radians, unless otherwise noted.
BTKMatrix BTK::MATH::create_rotation_matrix | ( | BTKVector const & | axis, | |
double | theta | |||
) |
Create a rotation matrix for a rotation about an axis.
Given an axis of rotation (expressed as a vector), and an angle of rotation (in radians) about that axis, intialize a rotation matrix. For methods to apply rotations to atoms and molecules, see Rigid-body molecular transformations.
Initialize a pre-existing rotation matrix for rotation about an axis.
Given an axis of rotation (expressed as a vector), and an angle of rotation (in radians) about that axis, intialize a rotation matrix. For methods to apply rotations to atoms and molecules, see Rigid-body molecular transformations.