The arrow's bounding sphere (frame coordinates).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(VectorHandle), | intent(in) | :: | self | |||
| real(kind=wp), | intent(out) | :: | center(3) |
the bound's center (frame coordinates) |
||
| real(kind=wp), | intent(out) | :: | radius |
its radius (scene units) |
subroutine vector_bound(self, center, radius) class(VectorHandle), intent(in) :: self real(wp), intent(out) :: center(3) !! the bound's center (frame coordinates) real(wp), intent(out) :: radius !! its radius (scene units) center = 0.5_wp * self%tip() radius = 0.5_wp * norm2(self%tip()) end subroutine vector_bound