A point in data-space with a visual size. Represents a single data point to be rendered, with position and visual sizing.
| 31 | /// |
| 32 | /// Represents a single data point to be rendered, with position and visual sizing. |
| 33 | pub struct Point { |
| 34 | /// Position in data coordinates [x, y]. |
| 35 | pub position: [f64; 2], |
| 36 | /// Visual size value (pixels or world units depending on mode). |
| 37 | pub size: f32, |
| 38 | /// 0 = pixels, 1 = world units. |
| 39 | pub size_mode: u32, |
| 40 | } |
| 41 | |
| 42 | impl Point { |
| 43 | pub fn new(x: f64, y: f64, size: f32) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected