pub struct Point<T, const N: usize>(/* private fields */);Expand description
A generic, fixed-size affine point with compile-time dimension checking.
Implementations§
Trait Implementations§
Source§impl<T, const N: usize> AddAssign<Vector<T, N>> for Point<T, N>
impl<T, const N: usize> AddAssign<Vector<T, N>> for Point<T, N>
Source§fn add_assign(&mut self, vector: Vector<T, N>)
fn add_assign(&mut self, vector: Vector<T, N>)
Performs the
+= operation. Read moreSource§impl<T, const N: usize> SubAssign<Vector<T, N>> for Point<T, N>
impl<T, const N: usize> SubAssign<Vector<T, N>> for Point<T, N>
Source§fn sub_assign(&mut self, vector: Vector<T, N>)
fn sub_assign(&mut self, vector: Vector<T, N>)
Performs the
-= operation. Read moreimpl<T: Copy, const N: usize> Copy for Point<T, N>
impl<T: Eq, const N: usize> Eq for Point<T, N>
impl<T, const N: usize> StructuralPartialEq for Point<T, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for Point<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for Point<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for Point<T, N>where
T: Send,
impl<T, const N: usize> Sync for Point<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for Point<T, N>where
T: Unpin,
impl<T, const N: usize> UnsafeUnpin for Point<T, N>where
T: UnsafeUnpin,
impl<T, const N: usize> UnwindSafe for Point<T, N>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T, D> AffineSpace for Twhere
T: Sub<Output = D>,
D: VectorSpace,
impl<T, D> AffineSpace for Twhere
T: Sub<Output = D>,
D: VectorSpace,
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