pub struct Point {
pub x: f32,
pub y: f32,
}Fields§
§x: f32§y: f32Implementations§
Trait Implementations§
impl Copy for Point
Source§impl RenderHash for Point
impl RenderHash for Point
fn render_hash(&self) -> u64
Source§impl SpringScalar for Point
impl SpringScalar for Point
Source§const DIMENSIONS: usize = 2
const DIMENSIONS: usize = 2
Number of animated dimensions (1..=4).
Source§fn from_dimensions(dimensions: [f32; 4]) -> Point
fn from_dimensions(dimensions: [f32; 4]) -> Point
Rebuilds a value from per-dimension floats (indices beyond
Self::DIMENSIONS are ignored).impl StructuralPartialEq for Point
Auto Trait Implementations§
impl Freeze for Point
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnsafeUnpin for Point
impl UnwindSafe for Point
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