/// Describes the relative rotation of a vector. Negative numbers represent
/// reverse (leftmost) rotations and positive numbers represent forward (rightmost)
/// rotations. Zero represents no rotation.
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Rotation(pub i32);
impl Rotation {
/// The current location in the evaluation domain
pub fn cur() -> Rotation {
Rotation(0)
}
/// The previous location in the evaluation domain
pub fn prev() -> Rotation {
Rotation(-1)
}
/// The next location in the evaluation domain
pub fn next() -> Rotation {
Rotation(1)
}
}