pub struct P2d(pub f32, pub f32);
Tuple Fields§
§0: f32
§1: f32
Trait Implementations§
Source§impl Vector for P2d
impl Vector for P2d
type Scalar = f32
fn new() -> Self
fn length_squared(&self) -> f32
fn reset(&mut self)
fn scale(&mut self, factor: f32)
fn sub(&self, other: &Self) -> Self
fn add_scaled(&mut self, factor: f32, other: &P2d)
fn clip_within(&mut self, min: &Self, max: &Self)
impl Copy for P2d
Auto Trait Implementations§
impl Freeze for P2d
impl RefUnwindSafe for P2d
impl Send for P2d
impl Sync for P2d
impl Unpin for P2d
impl UnwindSafe for P2d
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