mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
affine: Fix comments of GeoM.Apply
This commit is contained in:
parent
2a9873a4bb
commit
ce5a81ffcd
5
geom.go
5
geom.go
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user