Merge pull request #77 from leexingliang/master

modify comment
This commit is contained in:
Michael Fogleman 2019-06-12 10:10:55 -04:00 committed by GitHub
commit f194ddec6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -849,13 +849,13 @@ func (dc *Context) ScaleAbout(sx, sy, x, y float64) {
dc.Translate(-x, -y) dc.Translate(-x, -y)
} }
// Rotate updates the current matrix with a clockwise rotation. // Rotate updates the current matrix with a anticlockwise rotation.
// Rotation occurs about the origin. Angle is specified in radians. // Rotation occurs about the origin. Angle is specified in radians.
func (dc *Context) Rotate(angle float64) { func (dc *Context) Rotate(angle float64) {
dc.matrix = dc.matrix.Rotate(angle) dc.matrix = dc.matrix.Rotate(angle)
} }
// RotateAbout updates the current matrix with a clockwise rotation. // RotateAbout updates the current matrix with a anticlockwise rotation.
// Rotation occurs about the specified point. Angle is specified in radians. // Rotation occurs about the specified point. Angle is specified in radians.
func (dc *Context) RotateAbout(angle, x, y float64) { func (dc *Context) RotateAbout(angle, x, y float64) {
dc.Translate(x, y) dc.Translate(x, y)