go-imgrow/scalepoint.go

15 lines
189 B
Go
Raw Normal View History

2024-02-09 19:08:43 +00:00
package imgrow
import (
"image"
)
func scalePoint(scalar int, point image.Point) image.Point {
x2, y2 := scaleXY(scalar, point.X, point.Y)
return image.Point {
X: x2,
Y: y2,
}
}