Implement AbsoluteRotate for Identity.
This commit is contained in:
parent
b244975f93
commit
930ff81f3b
|
@ -1,7 +1,7 @@
|
|||
use std::num::{One, Zero};
|
||||
use structs::mat;
|
||||
use traits::operations::{Inv, Transpose};
|
||||
use traits::geometry::{Translation, Translate, Rotation, Rotate, Transformation, Transform};
|
||||
use traits::geometry::{Translation, Translate, Rotation, Rotate, Transformation, Transform, AbsoluteRotate};
|
||||
|
||||
impl One for mat::Identity {
|
||||
#[inline]
|
||||
|
@ -136,6 +136,13 @@ impl<V: Clone> Rotate<V> for mat::Identity {
|
|||
}
|
||||
}
|
||||
|
||||
impl<V: Clone> AbsoluteRotate<V> for mat::Identity {
|
||||
#[inline]
|
||||
fn absolute_rotate(&self, v: &V) -> V {
|
||||
v.clone()
|
||||
}
|
||||
}
|
||||
|
||||
impl<M: One> Transformation<M> for mat::Identity {
|
||||
#[inline]
|
||||
fn transformation(&self) -> M {
|
||||
|
|
Loading…
Reference in New Issue