pub struct Point<T = f32> {
pub x: T,
pub y: T,
}Expand description
A point in two dimensions.
Fields§
§x: THorizontal position, growing to the right.
y: TVertical position, growing downwards.
Implementations§
Trait Implementations§
Source§impl<T: AddAssign> AddAssign<Vector<T>> for Point<T>
impl<T: AddAssign> AddAssign<Vector<T>> for Point<T>
Source§fn add_assign(&mut self, v: Vector<T>)
fn add_assign(&mut self, v: Vector<T>)
Performs the
+= operation. Read moreimpl<T: Copy> Copy for Point<T>
impl<T: Eq> Eq for Point<T>
impl<T: PartialEq> StructuralPartialEq for Point<T>
Auto Trait Implementations§
impl<T> Forget for Point<T>
impl<T> Freeze for Point<T>where
T: Freeze,
impl<T> Move for Point<T>
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> UnsafeUnpin for Point<T>where
T: UnsafeUnpin,
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