pub struct ViewportSpecs {
pub center: Complex,
pub zoom: f64,
pub rotation: Complex,
pub is_julia: bool,
}Expand description
Parameters used to construct a Viewport from physical screen dimensions.
Fields§
§center: ComplexFocal complex centre point.
zoom: f64Zoom translation scaling index.
rotation: ComplexRotational coordinate transformation phasor.
is_julia: boolWhen true, the viewport maps around the origin (Julia-style).
Auto Trait Implementations§
impl Freeze for ViewportSpecs
impl RefUnwindSafe for ViewportSpecs
impl Send for ViewportSpecs
impl Sync for ViewportSpecs
impl Unpin for ViewportSpecs
impl UnsafeUnpin for ViewportSpecs
impl UnwindSafe for ViewportSpecs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more