Implement AbsoluteRotate for Identity.
This commit is contained in:
parent
930ff81f3b
commit
15d12e5322
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue