should_draw_at_distance Function

public function should_draw_at_distance(distance, pattern, pattern_size, pattern_length)

Determine if line should be drawn at given distance in pattern Following SRP - handles only pattern position logic

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: distance
real(kind=wp), intent(in) :: pattern(20)
integer, intent(in) :: pattern_size
real(kind=wp), intent(in) :: pattern_length

Return Value logical