The sphere's radius (scene units, > 0; default 1); can change at any time.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Sphere), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | radius |
scene units (<= 0: ignored) |
subroutine set_radius(self, radius) class(Sphere), intent(inout) :: self real(wp), intent(in) :: radius !! scene units (<= 0: ignored) if (radius <= 0.0_wp) return self%radius_ = radius call update_sphere_transform(self) end subroutine set_radius