From 35a14c2d184a44426d0d350908031285f8a60cba Mon Sep 17 00:00:00 2001
From: faiface <faiface@ksp.sk>
Date: Tue, 14 Mar 2017 13:15:53 +0100
Subject: [PATCH] rename ZM -> IM

---
 batch.go    | 2 +-
 geometry.go | 4 ++--
 graphics.go | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/batch.go b/batch.go
index af2c943..09c25f5 100644
--- a/batch.go
+++ b/batch.go
@@ -30,7 +30,7 @@ var _ BasicTarget = (*Batch)(nil)
 func NewBatch(container Triangles, pic Picture) *Batch {
 	return &Batch{
 		cont: Drawer{Triangles: container, Picture: pic},
-		mat:  ZM,
+		mat:  IM,
 		col:  NRGBA{1, 1, 1, 1},
 	}
 }
diff --git a/geometry.go b/geometry.go
index 99504c1..5dfd58c 100644
--- a/geometry.go
+++ b/geometry.go
@@ -230,8 +230,8 @@ func (r Rect) Contains(u Vec) bool {
 // vertically and then rotates everything by 90 degrees around the origin.
 type Matrix [9]float64
 
-// ZM stands for Zero-Matrix which is the identity matrix. Does nothing, no transformation.
-var ZM = Matrix(mgl64.Ident3())
+// IM stands for Zero-Matrix which is the identity matrix. Does nothing, no transformation.
+var IM = Matrix(mgl64.Ident3())
 
 // Move moves everything by the delta vector.
 func (m Matrix) Move(delta Vec) Matrix {
diff --git a/graphics.go b/graphics.go
index f4023a5..b6812a4 100644
--- a/graphics.go
+++ b/graphics.go
@@ -109,7 +109,7 @@ func NewIMDraw(pic Picture) *IMDraw {
 		d:   Drawer{Triangles: tri, Picture: pic},
 	}
 	im.Precision(64)
-	im.SetMatrix(ZM)
+	im.SetMatrix(IM)
 	im.SetColorMask(NRGBA{1, 1, 1, 1})
 	return im
 }
-- 
GitLab