MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / marker_center_world

Function marker_center_world

src/picking.rs:173–181  ·  view source on GitHub ↗
(pt: &Point)

Source from the content-addressed store, hash-verified

171}
172
173fn 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
183fn cpu_pick_hit(
184 points: &[Point],

Callers 1

cpu_pick_hitFunction · 0.85

Calls 1

newFunction · 0.50

Tested by

no test coverage detected