equal
deleted
inserted
replaced
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 { |