From c453b7bef4379bd613f68438a2117e506f47fde2 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 2 Mar 2016 15:01:45 -0800 Subject: [PATCH] Inline a few Matrix4 ops --- src/matrix.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/matrix.rs b/src/matrix.rs index 7e1147d..69d6b59 100644 --- a/src/matrix.rs +++ b/src/matrix.rs @@ -21,6 +21,7 @@ pub struct Matrix4 { } impl Matrix4 { + #[inline] pub fn new( m11: f32, m12: f32, m13: f32, m14: f32, m21: f32, m22: f32, m23: f32, m24: f32, @@ -63,6 +64,7 @@ impl Matrix4 { 1.0) } + #[inline] pub fn identity() -> Matrix4 { Matrix4::new(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0,