From 04972adaf36614894c4021b8b03ad138f1d9217e Mon Sep 17 00:00:00 2001 From: scottwinkler Date: Wed, 4 Apr 2018 23:41:03 -0700 Subject: [PATCH] Changed name from reflect to reflected need to match naming convention of the other methods --- geometry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry.go b/geometry.go index 017f96e..766b8cd 100644 --- a/geometry.go +++ b/geometry.go @@ -371,8 +371,8 @@ func (m Matrix) Rotated(around Vec, angle float64) Matrix { return m } -//Reflect reflects everything around a given point by the given angle in radians -func (m Matrix) Reflect(around pixel.Vec, angle float64) pixel.Matrix { +//Reflected reflects everything around a given point by the given angle in radians +func (m Matrix) Reflected(around pixel.Vec, angle float64) pixel.Matrix { sin2t, cos2t := math.Sincos(2 * angle) m[4], m[5] = m[4]-around.X, m[5]-around.Y m = m.Chained(pixel.Matrix{cos2t, sin2t, sin2t, -cos2t, 0, 0})