Changed name from reflect to reflected

need to match naming convention of the other methods
This commit is contained in:
scottwinkler 2018-04-04 23:41:03 -07:00 committed by GitHub
parent 28ed959ef7
commit 04972adaf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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})