Implement AbsoluteRotate for Identity.

This commit is contained in:
Sébastien Crozet 2013-11-28 20:14:25 +01:00
parent 930ff81f3b
commit 15d12e5322

View File

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