diff options
Diffstat (limited to 'honey/mat4.lua')
-rw-r--r-- | honey/mat4.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/honey/mat4.lua b/honey/mat4.lua index a97129c..8ea73d4 100644 --- a/honey/mat4.lua +++ b/honey/mat4.lua @@ -57,6 +57,13 @@ end setmetatable(Mat4, {__call=Mat4.new}) +function Mat4.Identity() + local m = Mat4() + m:identity() + return m +end + + function Mat4.__index(self, key) if type(key) == "number" then return RowLookup(key, self.data) |