Implement AbsoluteRotate for Identity.

This commit is contained in:
Sébastien Crozet 2013-11-28 20:14:25 +01:00
parent 930ff81f3b
commit 15d12e5322
1 changed files with 2 additions and 6 deletions

View File

@ -18,17 +18,13 @@ mod mat_macros;
/// Special identity matrix. All its operation are no-ops. /// Special identity matrix. All its operation are no-ops.
#[deriving(Eq, Encodable, Decodable, Clone, DeepClone, Rand, Zero, ToStr)] #[deriving(Eq, Encodable, Decodable, Clone, DeepClone, Rand, Zero, ToStr)]
pub struct Identity { pub struct Identity;
unused: uint // XXX: zero-sized structures ICE when used cross-crate.
}
impl Identity { impl Identity {
/// Creates a new identity matrix. /// Creates a new identity matrix.
#[inline] #[inline]
pub fn new() -> Identity { pub fn new() -> Identity {
Identity { Identity
unused: 0
}
} }
} }