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

Method effective_position

src/camera.rs:105–107  ·  view source on GitHub ↗

Get the effective camera position relative to the render offset

(&self)

Source from the content-addressed store, hash-verified

103
104 /// Get the effective camera position relative to the render offset
105 pub fn effective_position(&self) -> DVec2 {
106 self.position - self.render_offset
107 }
108
109 pub(crate) fn x_range(&self) -> [f64; 2] {
110 [

Callers 4

screen_to_worldMethod · 0.80
screen_to_renderMethod · 0.80
updateMethod · 0.80
world_to_ndcMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected