Scale the sphere along its x, y and z axes (all > 0), making an ellipsoid with semi-axes radius * scale.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Sphere), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | scale(3) |
along x, y and z (all > 0, else ignored) |
subroutine set_sphere_scale(self, scale) class(Sphere), intent(inout) :: self real(wp), intent(in) :: scale(3) !! along x, y and z (all > 0, else ignored) if (any(scale <= 0.0_wp)) return self%scale_ = scale call update_sphere_transform(self) end subroutine set_sphere_scale