dcm_from_axes Subroutine

public subroutine dcm_from_axes(A, B, dcm)

Returns the direction cosine matrix of axes(i.e. frame) B with respect to axes(i.e. frame) A.

Arguments

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

The columns of A represent the orthonormal basis vectors of frame A.

real(kind=rp), intent(in), dimension(3,3) :: B

The columns of B represent the orthonormal basis vectors of frame B.

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

Direction cosine matrix of frame B with respect to frame A