aa_shiftmat Subroutine

public subroutine aa_shiftmat(axis, angle, forward, shiftmat)

Returns the shifter matrix corresponding to an axis-angle representation.

Arguments

Type IntentOptional Attributes Name
real(kind=rp), intent(in), dimension(3) :: axis

Unit vector along the axis.

real(kind=rp), intent(in) :: angle

Angle of rotation in radian. 0 <= angle < pi.

logical, intent(in) :: forward

Whether to shift forward, i.e., along the orientation or shift reverse.

real(kind=rp), intent(out), dimension(3,3) :: shiftmat

Shifter matrix.