rotation_matrix Function

public pure function rotation_matrix(axis, angle) result(matrix)

Return the rotation matrix given axis and angle of ratation.

Angle must be in radiants.

Arguments

TypeIntentOptionalAttributesName
type(vector), intent(in) :: axis

Axis of ratation.

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

Angle of ratation.

Return Value real(kind=R8P)(3,3)

Rotation matrix.


Calls

proc~~rotation_matrix~~CallsGraph proc~rotation_matrix rotation_matrix proc~normalized normalized proc~rotation_matrix->proc~normalized

Called by

proc~~rotation_matrix~~CalledByGraph proc~rotation_matrix rotation_matrix proc~rotate_by_axis_angle~3 rotate_by_axis_angle proc~rotate_by_axis_angle~3->proc~rotation_matrix

Contents

None