From 50293ca41770cae73c2bb0ed77c7bc52439e9b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sat, 29 Jun 2013 18:37:01 +0000 Subject: [PATCH] Add read-only access to a Rotmat subcomponents. --- src/adaptors/rotmat.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/adaptors/rotmat.rs b/src/adaptors/rotmat.rs index 2a5a3cce..6c423338 100644 --- a/src/adaptors/rotmat.rs +++ b/src/adaptors/rotmat.rs @@ -19,6 +19,12 @@ use vec::Vec3; pub struct Rotmat { priv submat: M } +impl Rotmat +{ + pub fn submat(&self) -> M + { copy self.submat } +} + pub fn rotmat2>(angle: N) -> Rotmat> { let coa = angle.cos();