The pair at trajectory point i (1 to num_drawn) as drawn, its start a and end b: read back from the buffers.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(RibbonArtist), | intent(in) | :: | self | |||
| integer, | intent(in) | :: | i |
the trajectory point (1 to num_drawn) |
||
| real(kind=wp), | intent(out) | :: | a(3) |
the pair's start and end (frame coordinates) |
||
| real(kind=wp), | intent(out) | :: | b(3) |
the pair's start and end (frame coordinates) |
subroutine drawn_pair(self, i, a, b) class(RibbonArtist), intent(in) :: self integer, intent(in) :: i !! the trajectory point (1 to num_drawn) real(wp), intent(out) :: a(3), b(3) !! the pair's start and end (frame coordinates) a = self%chain%point(2 * i - 1) b = self%chain%point(2 * i) end subroutine drawn_pair