From 364c16ca193cde865069e0f88743419ea10fb404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sat, 29 Jun 2013 18:35:01 +0000 Subject: [PATCH] Add read-only accesse to a Transform subcomponents. --- src/adaptors/transform.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/adaptors/transform.rs b/src/adaptors/transform.rs index 5298599d..01564d3a 100644 --- a/src/adaptors/transform.rs +++ b/src/adaptors/transform.rs @@ -25,6 +25,17 @@ impl Transform { Transform { submat: mat, subtrans: trans } } } +impl Transform +{ + #[inline] + pub fn submat(&self) -> M + { copy self.submat } + + #[inline] + pub fn subtrans(&self) -> V + { copy self.subtrans } +} + impl Dim for Transform { #[inline]