Index of the j-th point counted in the intermediate markers' direction.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(MarkerArtist), | intent(in) | :: | self | |||
| integer, | intent(in) | :: | j |
position in the counting order (1 to n); number of points |
||
| integer, | intent(in) | :: | n |
position in the counting order (1 to n); number of points |
pure integer function counted(self, j, n) type(MarkerArtist), intent(in) :: self integer, intent(in) :: j, n !! position in the counting order (1 to n); number of points counted = merge(n + 1 - j, j, self%direction_ == MARKER_END) end function counted