From 6f4f1313781dbc73555582c04137ff61c8aff0e9 Mon Sep 17 00:00:00 2001 From: odkok Date: Sat, 29 Oct 2022 19:12:09 +0800 Subject: [PATCH] Fix: change vec2 type to template type in visibility_polygon --- visibility/visibility.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/visibility/visibility.hpp b/visibility/visibility.hpp index 2dd426b..77d5daf 100644 --- a/visibility/visibility.hpp +++ b/visibility/visibility.hpp @@ -234,7 +234,7 @@ namespace geometry { // Nearest line segment has changed // Compute the intersection point with this segment - vec2 intersection; + Vector intersection; ray ray{ point, event.point() - point }; auto nearest_segment = *state.begin(); auto intersects = ray.intersects(nearest_segment, intersection); @@ -271,4 +271,4 @@ namespace geometry } } -#endif // GEOMETRY_VISIBILITY_HPP_ \ No newline at end of file +#endif // GEOMETRY_VISIBILITY_HPP_