translation_matrix Function

public pure function translation_matrix(t) result(m)

The 4x4 transform translating by t.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: t(3)

translation

Return Value real(kind=wp), (4,4)


Calls

proc~~translation_matrix~~CallsGraph proc~translation_matrix translation_matrix proc~identity_matrix identity_matrix proc~translation_matrix->proc~identity_matrix

Called by

proc~~translation_matrix~~CalledByGraph proc~translation_matrix translation_matrix proc~world_to_view View%world_to_view proc~world_to_view->proc~translation_matrix proc~fly fly proc~fly->proc~world_to_view proc~get_camera WindowProxy%get_camera proc~get_camera->proc~world_to_view proc~home View%home proc~home->proc~world_to_view proc~place_camera place_camera proc~place_camera->proc~world_to_view proc~place_camera->proc~fly proc~place_camera->proc~home proc~set_camera WindowProxy%set_camera proc~set_camera->proc~world_to_view proc~track_view track_view proc~track_view->proc~world_to_view proc~frame WindowProxy%frame proc~frame->proc~place_camera proc~frame->proc~track_view proc~dispatch_events dispatch_events proc~frame->proc~dispatch_events proc~view_camera view_camera proc~view_camera->proc~get_camera proc~cursor_ray WindowProxy%cursor_ray proc~cursor_ray->proc~view_camera proc~resize WindowProxy%resize proc~resize->proc~frame proc~run WindowProxy%run proc~run->proc~frame proc~screen_position WindowProxy%screen_position proc~screen_position->proc~view_camera proc~window_pick WindowProxy%window_pick proc~window_pick->proc~view_camera proc~drag_handle drag_handle proc~drag_handle->proc~cursor_ray proc~grab_handle grab_handle proc~grab_handle->proc~cursor_ray proc~hover_handle hover_handle proc~hover_handle->proc~window_pick proc~dispatch_event dispatch_event proc~dispatch_event->proc~drag_handle proc~dispatch_event->proc~grab_handle proc~dispatch_event->proc~hover_handle proc~release_handle release_handle proc~dispatch_event->proc~release_handle proc~release_handle->proc~hover_handle proc~dispatch_events->proc~dispatch_event

Source Code

    pure function translation_matrix(t) result(m)
        real(wp), intent(in) :: t(3)                    !! translation
        real(wp) :: m(4,4)
        m = identity_matrix()
        m(1:3, 4) = t
    end function translation_matrix