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

Method axis_ranges

src/camera.rs:123–125  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

121 }
122
123 pub(crate) fn axis_ranges(&self) -> ([f64; 2], [f64; 2]) {
124 (self.x_range(), self.y_range())
125 }
126
127 /// Convert screen coordinates to render coordinates (without offset)
128 pub fn screen_to_render(&self, screen_pos: DVec2, screen_size: DVec2) -> DVec2 {

Calls 2

x_rangeMethod · 0.80
y_rangeMethod · 0.80

Tested by

no test coverage detected