position Function

private pure function position(self, i) result(p)

Position i (z = 0 for a 2-DOF trajectory).

Type Bound

Trajectory

Arguments

Type IntentOptional Attributes Name
class(Trajectory), intent(in) :: self
integer, intent(in) :: i

the position (1 to num_positions)

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


Source Code

    pure function position(self, i) result(p)
        class(Trajectory), intent(in) :: self
        integer, intent(in) :: i                            !! the position (1 to num_positions)
        real(wp) :: p(3)
        p = self%posopt(:, 0, i)
    end function position