affine: Fix comments of GeoM.Apply

This commit is contained in:
Hajime Hoshi 2017-09-16 18:00:11 +09:00
parent 2a9873a4bb
commit ce5a81ffcd

View File

@ -33,8 +33,9 @@ func (g *GeoM) Reset() {
g.impl.Reset() g.impl.Reset()
} }
// Apply pre-multiplies a vector (x, y) by the matrix. // Apply pre-multiplies a vector (x, y, 1) by the matrix.
// In other words, Apply calculates GeoM * (x, y). // In other words, Apply calculates GeoM * (x, y, 1).
// The return value is x and y values of the result vector.
func (g *GeoM) Apply(x, y float64) (x2, y2 float64) { func (g *GeoM) Apply(x, y float64) (x2, y2 float64) {
return g.impl.Apply(x, y) return g.impl.Apply(x, y)
} }