MCPcopy
hub / github.com/tdewolff/canvas / Rotate

Method Rotate

path.go:1354–1356  ·  view source on GitHub ↗

Rotate rotates the path by deg degrees. It modifies the path in-place.

(deg float64)

Source from the content-addressed store, hash-verified

1352
1353// Rotate rotates the path by deg degrees. It modifies the path in-place.
1354func (p *Path) Rotate(deg float64) *Path {
1355 return p.Transform(Identity.Rotate(deg))
1356}
1357
1358// TransformFunc transforms the path by the given function: (x,y)=>(x,y). It modifies the path in-place.
1359func (p *Path) TransformFunc(f func(float64, float64) (float64, float64)) *Path {

Callers 14

DrawPreviewWithAssetsFunction · 0.45
TestRectFunction · 0.45
TestMatrixFunction · 0.45
TransformMethod · 0.45
MarkersMethod · 0.45
renderLineToMethod · 0.45
parseTransformMethod · 0.45
parseDefsMethod · 0.45
TestPathTransformFunction · 0.45
PrimitiveCellFunction · 0.45
TestCanvasFunction · 0.45
NewLineHatchFunction · 0.45

Calls 1

TransformMethod · 0.95

Tested by 4

TestRectFunction · 0.36
TestMatrixFunction · 0.36
TestPathTransformFunction · 0.36
TestCanvasFunction · 0.36