pub struct Position<const N: usize>(pub [f64; N]);Expand description
An N-dimensional point representing a position.
Tuple Fields§
§0: [f64; N]Implementations§
Trait Implementations§
Source§impl<const N: usize> Add<Vector<N>> for Position<N>
Translate a point by a vector: point + vector → point.
impl<const N: usize> Add<Vector<N>> for Position<N>
Translate a point by a vector: point + vector → point.
impl<const N: usize> Copy for Position<N>
Source§impl<'de, const N: usize> Deserialize<'de> for Position<N>
Available on crate feature serde only.
impl<'de, const N: usize> Deserialize<'de> for Position<N>
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<const N: usize> StructuralPartialEq for Position<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for Position<N>
impl<const N: usize> RefUnwindSafe for Position<N>
impl<const N: usize> Send for Position<N>
impl<const N: usize> Sync for Position<N>
impl<const N: usize> Unpin for Position<N>
impl<const N: usize> UnsafeUnpin for Position<N>
impl<const N: usize> UnwindSafe for Position<N>
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