pub struct Rotation { /* private fields */ }Expand description
A random orthogonal transform, rebuilt from its seed rather than stored.
Implementations§
Source§impl Rotation
impl Rotation
Sourcepub fn new(dim: usize, seed: u64) -> Rotation
pub fn new(dim: usize, seed: u64) -> Rotation
The rotation a collection of dim dimensional vectors uses, from the
seed in its catalogue entry.
§Panics
If dim is zero. A collection of vectors with no coordinates is a
mistake made somewhere further up rather than a case to handle.
Auto Trait Implementations§
impl Freeze for Rotation
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnsafeUnpin 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