macro_rules! impl_operator {
    ($matrix:ident, $type:ty, $type_r:ty, $name:ident, $rotation_type:ty, 1, $theta:expr, $doc: expr) => { ... };
    ($matrix:ident, $type:ty, $type_r:ty, $name:ident, $rotation_type:ty, 2, $theta:expr, $doc: expr) => { ... };
}