Struct me3_framework::overlay::widgets::plot::PlotBounds
source · [−]pub struct PlotBounds { /* private fields */ }
Expand description
2D bounding box of f64 precision. The range of data values we show.
Implementations
sourceimpl PlotBounds
impl PlotBounds
pub const NOTHING: PlotBounds = Self{ min: [f64::INFINITY; 2], max: [-f64::INFINITY; 2],}
pub fn min(&self) -> [f64; 2]
pub fn max(&self) -> [f64; 2]
pub fn is_finite(&self) -> bool
pub fn is_valid(&self) -> bool
pub fn width(&self) -> f64
pub fn height(&self) -> f64
pub fn center(&self) -> PlotPoint
Trait Implementations
sourceimpl Clone for PlotBounds
impl Clone for PlotBounds
sourcefn clone(&self) -> PlotBounds
fn clone(&self) -> PlotBounds
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PlotBounds
impl Debug for PlotBounds
sourceimpl PartialEq<PlotBounds> for PlotBounds
impl PartialEq<PlotBounds> for PlotBounds
sourcefn eq(&self, other: &PlotBounds) -> bool
fn eq(&self, other: &PlotBounds) -> bool
impl Copy for PlotBounds
impl StructuralPartialEq for PlotBounds
Auto Trait Implementations
impl RefUnwindSafe for PlotBounds
impl Send for PlotBounds
impl Sync for PlotBounds
impl Unpin for PlotBounds
impl UnwindSafe for PlotBounds
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more