The arrow's length, its head's length and radius (scene units).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(VectorHandle), | intent(in) | :: | self | |||
| real(kind=wp), | intent(out) | :: | len |
the arrow's length (the tip's distance) |
||
| real(kind=wp), | intent(out) | :: | head_len |
its head's length |
||
| real(kind=wp), | intent(out) | :: | head_radius |
its head's radius |
pure subroutine arrow_sizes(self, len, head_len, head_radius) class(VectorHandle), intent(in) :: self real(wp), intent(out) :: len !! the arrow's length (the tip's distance) real(wp), intent(out) :: head_len !! its head's length real(wp), intent(out) :: head_radius !! its head's radius len = norm2(self%tip()) head_len = 0.2_wp * len if (self%head_size_ > 0.0_wp) head_len = min(self%head_size_, 0.5_wp * len) head_radius = 0.35_wp * head_len end subroutine arrow_sizes