Number of segments to draw (none if all sources are zero).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(SegmentArtist), | intent(in) | :: | self |
integer function segment_count(self) result(m) type(SegmentArtist), intent(in) :: self integer :: n m = 0 if (all(self%start_%src == SOURCE_ZERO) .and. all(self%end_%src == SOURCE_ZERO)) return n = min(source_points(self%traj, self%start_), source_points(self%traj, self%end_)) if (n > 0) m = (n - 1) / self%stride_ + 1 end function segment_count