From b3e5e9f902f05ce467d9b13ef58fdf521f86142f Mon Sep 17 00:00:00 2001 From: faiface Date: Tue, 14 Mar 2017 13:35:24 +0100 Subject: [PATCH] consistently rename Matrix.Move -> Moved --- geometry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry.go b/geometry.go index e662c63..70c3261 100644 --- a/geometry.go +++ b/geometry.go @@ -245,8 +245,8 @@ type Matrix [9]float64 // 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 { +// Moved moves everything by the delta vector. +func (m Matrix) Moved(delta Vec) Matrix { m3 := mgl64.Mat3(m) m3 = mgl64.Translate2D(delta.XY()).Mul3(m3) return Matrix(m3)