From a26e6a1dd5c462755335f61ad852d493c6490c44 Mon Sep 17 00:00:00 2001 From: ffreyer Date: Mon, 12 Jun 2023 13:45:21 +0200 Subject: [PATCH] check other ray_at_cursor methods --- src/interaction/position_on_plot.jl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/interaction/position_on_plot.jl b/src/interaction/position_on_plot.jl index e0eb414c879..f22df4885fd 100644 --- a/src/interaction/position_on_plot.jl +++ b/src/interaction/position_on_plot.jl @@ -36,20 +36,17 @@ function ray_at_cursor(scene::Scene, cam::Camera3D) end end -function ray_at_cursor(scene::Scene, ::Camera2D) - @info "TODO verify" +function ray_at_cursor(scene::Scene, cam::Camera2D) rel_pos = mouseposition_px(scene) ./ widths(scene.px_area[]) origin = minimum(cam.area[]) .+ rel_pos .* widths(cam.area[]) return Ray(to_ndim(Point3f, origin, 10_000f0), Vec3f(0,0,-1)) end function ray_at_cursor(scene::Scene, ::PixelCamera) - @info "TODO verify" return Ray(to_ndim(Point3f, mouseposition_px(scene), 10_000f0), Vec3f(0,0,-1)) end function ray_at_cursor(scene::Scene, ::RelativeCamera) - @info "TODO verify" origin = mouseposition_px(scene) ./ widths(scene.px_area[]) return Ray(to_ndim(Point3f, origin, 10_000f0), Vec3f(0,0,-1)) end