Struct lighthouse_protocol::Rotation
source · pub struct Rotation { /* private fields */ }
Expand description
An 2D rotation that is representable using an integer matrix.
Implementations§
source§impl Rotation
impl Rotation
sourcepub fn random_cardinal_with(rng: &mut impl Rng) -> Self
pub fn random_cardinal_with(rng: &mut impl Rng) -> Self
Randomly one of the four cardinal rotations with the given rng.
sourcepub fn random_cardinal() -> Self
pub fn random_cardinal() -> Self
Randomly one of the four cardinal rotations with the thread-local rng.
Trait Implementations§
source§impl PartialEq for Rotation
impl PartialEq for Rotation
impl Copy for Rotation
impl Eq for Rotation
impl StructuralPartialEq for Rotation
Auto Trait Implementations§
impl Freeze for Rotation
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnwindSafe for Rotation
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