From ce5a81ffcd17b05b60a9a89a4f815ecd95389dc5 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 16 Sep 2017 18:00:11 +0900 Subject: [PATCH] affine: Fix comments of GeoM.Apply --- geom.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/geom.go b/geom.go index 5a2e7f4f3..0f46c83ff 100644 --- a/geom.go +++ b/geom.go @@ -33,8 +33,9 @@ func (g *GeoM) Reset() { g.impl.Reset() } -// Apply pre-multiplies a vector (x, y) by the matrix. -// In other words, Apply calculates GeoM * (x, y). +// Apply pre-multiplies a vector (x, y, 1) by the matrix. +// 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) { return g.impl.Apply(x, y) }