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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Rotation
[src]

impl Debug for Rotation
[src]

Formats the value using the given formatter.

impl Eq for Rotation
[src]

impl PartialEq for Rotation
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Rotation
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Mul<Rotation> for Rotation
[src]

The resulting type after applying the * operator

The method for the * operator

impl Mul<Move> for Rotation
[src]

The resulting type after applying the * operator

The method for the * operator