From 930ff81f3b6643caff79050502af0915329b9da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Thu, 28 Nov 2013 20:11:10 +0100 Subject: [PATCH] Implement AbsoluteRotate for Identity. --- src/structs/spec/identity.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/structs/spec/identity.rs b/src/structs/spec/identity.rs index 235f541b..1fc39f50 100644 --- a/src/structs/spec/identity.rs +++ b/src/structs/spec/identity.rs @@ -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 Rotate for mat::Identity { } } +impl AbsoluteRotate for mat::Identity { + #[inline] + fn absolute_rotate(&self, v: &V) -> V { + v.clone() + } +} + impl Transformation for mat::Identity { #[inline] fn transformation(&self) -> M {