Point i from the data sources (the origin if zero).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(MarkerArtist), | intent(in) | :: | self | |||
| integer, | intent(in) | :: | i |
the trajectory point |
||
| logical, | intent(in) | :: | zero |
all sources zero, or no trajectory: the origin |
function marker_point(self, i, zero) result(v) type(MarkerArtist), intent(in) :: self integer, intent(in) :: i !! the trajectory point logical, intent(in) :: zero !! all sources zero, or no trajectory: the origin real(wp) :: v(3) real(wp) :: w(3, 1) v = 0.0_wp if (.not. zero) then v = art_point(self, i, self%sources_) else if (associated(self%traj)) then ! (the data frame's origin, at the point's time) if (i >= 1 .and. i <= self%traj%num_times()) then w = 0.0_wp call to_shown_at(self, i, w) v = w(:, 1) end if end if end function marker_point