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

Class Point

src/point.rs:33–40  ·  view source on GitHub ↗

A point in data-space with a visual size. Represents a single data point to be rendered, with position and visual sizing.

Source from the content-addressed store, hash-verified

31///
32/// Represents a single data point to be rendered, with position and visual sizing.
33pub 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
42impl Point {
43 pub fn new(x: f64, y: f64, size: f32) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected