aa_rotate_vectors Subroutine

public subroutine aa_rotate_vectors(v, axis, angle, vrot)

Rotates vectors about axis by angle.

Arguments

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

(3,n). Vectors to rotate.

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.

real(kind=rp), intent(out), dimension(:,:) :: vrot

(3,n). Rotated vectors.