The handle moved to the sampled point of the path nearest p (frame
coordinates; after a grab: the path's points are sampled then).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(TimeHandle), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | p(3) |
the point (frame coordinates) |
subroutine time_move_handle_point(self, p) class(TimeHandle), intent(inout) :: self real(wp), intent(in) :: p(3) !! the point (frame coordinates) real(wp) :: q(3) integer :: k if (.not. allocated(self%sample_t)) return q = p + self%position() ! (the parent's coordinates) k = minloc(norm2(self%sample_p - spread(q, 2, size(self%sample_t)), dim=1), dim=1) call self%set_time(self%sample_t(k)) end subroutine time_move_handle_point