feat: coordinates and magnification can be set to specific values

This commit is contained in:
2026-09-15 09:48:53 +02:00
parent 96c5d6344e
commit 9069d23b21
2 changed files with 106 additions and 12 deletions
-5
View File
@@ -101,11 +101,6 @@ impl ViewState {
self.half_height *= factor;
}
/// f64 approximation of the center, for display.
pub fn center_f64(&self) -> (f64, f64) {
(self.center_re.to_f64().value(), self.center_im.to_f64().value())
}
/// Build a view from full-precision center coordinates and a half-height.
pub fn with_center(center_re: Big, center_im: Big, half_height: f64) -> Self {
let mut v = Self {