pub struct Point<T = f32> {
pub x: T,
pub y: T,
}Expand description
A 2D point.
Fields§
§x: TThe X coordinate.
y: TThe Y coordinate.
Implementations§
Trait Implementations§
Source§impl<T> AddAssign<Vector<T>> for Point<T>where
T: AddAssign,
impl<T> AddAssign<Vector<T>> for Point<T>where
T: AddAssign,
Source§fn add_assign(&mut self, vector: Vector<T>)
fn add_assign(&mut self, vector: Vector<T>)
Performs the
+= operation. Read moreSource§impl Mul<Transformation> for Point
impl Mul<Transformation> for Point
Source§impl<T> SubAssign<Vector<T>> for Point<T>where
T: SubAssign,
impl<T> SubAssign<Vector<T>> for Point<T>where
T: SubAssign,
Source§fn sub_assign(&mut self, vector: Vector<T>)
fn sub_assign(&mut self, vector: Vector<T>)
Performs the
-= operation. Read moreimpl<T: Copy> Copy for Point<T>
impl<T: Eq> Eq for Point<T>
impl<T> StructuralPartialEq for Point<T>
Auto Trait Implementations§
impl<T> Freeze for Point<T>where
T: Freeze,
impl<T> RefUnwindSafe for Point<T>where
T: RefUnwindSafe,
impl<T> Send for Point<T>where
T: Send,
impl<T> Sync for Point<T>where
T: Sync,
impl<T> Unpin for Point<T>where
T: Unpin,
impl<T> UnwindSafe for Point<T>where
T: UnwindSafe,
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