The trajectory's position at time t (point_at: linear
between its points, its first or last point outside its times; 0 if
it has none).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(TrajectoryPath), | intent(in) | :: | self | |||
| real(kind=wp), | intent(in) | :: | t |
the time |
function trajectory_path_position(self, t) result(p) class(TrajectoryPath), intent(in) :: self real(wp), intent(in) :: t !! the time real(wp) :: p(3) p = 0.0_wp if (associated(self%trajectory)) p = self%trajectory%point_at(t) end function trajectory_path_position