From 75ab96923c4688074bce8f767dba53d5c56a13f5 Mon Sep 17 00:00:00 2001 From: faiface Date: Sun, 11 Jun 2017 14:14:02 +0200 Subject: [PATCH] another minor code style change --- geometry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geometry.go b/geometry.go index 4e1deda..503d8cb 100644 --- a/geometry.go +++ b/geometry.go @@ -340,7 +340,7 @@ func (m Matrix) Chained(next Matrix) Matrix { // // Time complexity is O(1). func (m Matrix) Project(u Vec) Vec { - return Vec{X: m[0]*u.X + m[2]*u.Y + m[4], Y: m[1]*u.X + m[3]*u.Y + m[5]} + return Vec{m[0]*u.X + m[2]*u.Y + m[4], m[1]*u.X + m[3]*u.Y + m[5]} } // Unproject does the inverse operation to Project.