translate Interface

public interface translate

Contents


Module Procedures

private pure function translate_1(x, y, z) result(rst)

Computes the 4-by-4 homogeneous transformation matrix describing a rigid-body translation.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: x

The x-component of the translation.

real(kind=real64), intent(in) :: y

The y-component of the translation.

real(kind=real64), intent(in) :: z

The z-component of the translation.

Return Value real(kind=real64), (4,4)

The resulting 4-by-4 matrix.

private pure function translate_2(d) result(rst)

Computes the 4-by-4 homogeneous transformation matrix describing a rigid-body translation.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: d(3)

The x, y, z translation vector.

Return Value real(kind=real64), (4,4)

The resulting 4-by-4 matrix.