(pt: &Point)
| 171 | } |
| 172 | |
| 173 | fn marker_center_world(pt: &Point) -> DVec2 { |
| 174 | let mut world = DVec2::new(pt.position[0], pt.position[1]); |
| 175 | if pt.size_mode == crate::point::MARKER_SIZE_WORLD { |
| 176 | let half = pt.size as f64 * 0.5; |
| 177 | world.x += half; |
| 178 | world.y += half; |
| 179 | } |
| 180 | world |
| 181 | } |
| 182 | |
| 183 | fn cpu_pick_hit( |
| 184 | points: &[Point], |