pub struct XTransform {
pub base: i64,
pub step: f32,
pub offset: f32,
}Expand description
Index-to-x mapping of a SeriesDraw: x = (j - base) * step + offset, where
j is a logical index (level 0) or a bucket number (LOD level), and x is the
center of element j. j - base is a small integer, so the f32 math is exact
enough.
Fields§
§base: i64Index of the element at offset.
step: f32Distance between element centers in physical pixels.
offset: f32x of the center of element base.
Trait Implementations§
Source§impl Clone for XTransform
impl Clone for XTransform
impl Copy for XTransform
Source§impl Debug for XTransform
impl Debug for XTransform
Source§impl Default for XTransform
impl Default for XTransform
Source§impl PartialEq for XTransform
impl PartialEq for XTransform
impl StructuralPartialEq for XTransform
Auto Trait Implementations§
impl Forget for XTransform
impl Freeze for XTransform
impl Move for XTransform
impl RefUnwindSafe for XTransform
impl Send for XTransform
impl Sync for XTransform
impl Unpin for XTransform
impl UnsafeUnpin for XTransform
impl UnwindSafe for XTransform
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