set_sphere_position Subroutine

private subroutine set_sphere_position(self, position)

Position of the body's center in its frame.

Type Bound

Sphere

Arguments

Type IntentOptional Attributes Name
class(Sphere), intent(inout) :: self
real(kind=wp), intent(in) :: position(3)

scene units


Calls

proc~~set_sphere_position~~CallsGraph proc~set_sphere_position Sphere%set_sphere_position proc~update_sphere_transform update_sphere_transform proc~set_sphere_position->proc~update_sphere_transform interface~vkf_transform_set_matrix vkf_transform_set_matrix proc~update_sphere_transform->interface~vkf_transform_set_matrix proc~frame_matrix frame_matrix proc~update_sphere_transform->proc~frame_matrix proc~name ReferenceFrame%name proc~update_sphere_transform->proc~name proc~radii Sphere%radii proc~update_sphere_transform->proc~radii proc~quat_to_matrix quat_to_matrix proc~frame_matrix->proc~quat_to_matrix

Source Code

    subroutine set_sphere_position(self, position)
        class(Sphere), intent(inout) :: self
        real(wp), intent(in) :: position(3)                 !! scene units
        self%sphere_position_ = position
        call update_sphere_transform(self)
    end subroutine set_sphere_position