MCPcopy
hub / github.com/fogleman/primitive / rotate

Function rotate

primitive/util.go:164–168  ·  view source on GitHub ↗
(x, y, theta float64)

Source from the content-addressed store, hash-verified

162}
163
164func rotate(x, y, theta float64) (rx, ry float64) {
165 rx = x*math.Cos(theta) - y*math.Sin(theta)
166 ry = x*math.Sin(theta) + y*math.Cos(theta)
167 return
168}
169
170func imageToRGBA(src image.Image) *image.RGBA {
171 dst := image.NewRGBA(src.Bounds())

Callers 2

RasterizeMethod · 0.85
RasterizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…