rust/landgen/src/outline.rs
changeset 14141 477faa7b8a48
parent 14140 3078123e84ea
child 14142 11202097584f
equal deleted inserted replaced
14140:3078123e84ea 14141:477faa7b8a48
   198         }
   198         }
   199 
   199 
   200         // go through all points, including fill points
   200         // go through all points, including fill points
   201         for pi in self.iter().cloned() {
   201         for pi in self.iter().cloned() {
   202             if pi != segment.start && pi != segment.end {
   202             if pi != segment.start && pi != segment.end {
   203                 if intersects(&pi.ray_to(normal), &segment) {
   203                 if intersects(&pi.ray_with_dir(normal), &segment) {
   204                     // ray from segment.start
   204                     // ray from segment.start
   205                     if let Some((t, d)) = solve_intersection(
   205                     if let Some((t, d)) = solve_intersection(
   206                         &self.intersections_box, &normal_ray, &segment.start.line_to(pi),
   206                         &self.intersections_box, &normal_ray, &segment.start.line_to(pi),
   207                     ) {
   207                     ) {
   208                         if t > 0 {
   208                         if t > 0 {