rust/landgen/src/outline.rs
changeset 14141 477faa7b8a48
parent 14140 3078123e84ea
child 14142 11202097584f
--- a/rust/landgen/src/outline.rs	Tue Nov 06 00:02:23 2018 +0100
+++ b/rust/landgen/src/outline.rs	Tue Nov 06 16:23:43 2018 +0300
@@ -200,7 +200,7 @@
         // go through all points, including fill points
         for pi in self.iter().cloned() {
             if pi != segment.start && pi != segment.end {
-                if intersects(&pi.ray_to(normal), &segment) {
+                if intersects(&pi.ray_with_dir(normal), &segment) {
                     // ray from segment.start
                     if let Some((t, d)) = solve_intersection(
                         &self.intersections_box, &normal_ray, &segment.start.line_to(pi),