Struct board_game_geom::Rotation
[−]
[src]
pub struct Rotation(_, _, _, _);
A 2x2 rotation matrix.
Rotation(yy, yx, xy, xx) * Move(y, x) == Move(yy*y + yx*x, xy*y + xx*x)
Trait Implementations
impl Clone for Rotation
[src]
fn clone(&self) -> Rotation
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Rotation
[src]
impl Debug for Rotation
[src]
impl Eq for Rotation
[src]
impl PartialEq for Rotation
[src]
fn eq(&self, __arg_0: &Rotation) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Rotation) -> bool
This method tests for !=
.
impl Hash for Rotation
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Mul<Rotation> for Rotation
[src]
type Output = Rotation
The resulting type after applying the *
operator
fn mul(self, other: Rotation) -> Rotation
The method for the *
operator