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

Method y_range

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

Source from the content-addressed store, hash-verified

114 }
115
116 pub(crate) fn y_range(&self) -> [f64; 2] {
117 [
118 self.position.y - self.half_extents.y,
119 self.position.y + self.half_extents.y,
120 ]
121 }
122
123 pub(crate) fn axis_ranges(&self) -> ([f64; 2], [f64; 2]) {
124 (self.x_range(), self.y_range())

Callers 3

axis_rangesMethod · 0.80
rebuild_reflinesMethod · 0.80
draw_reference_linesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected