MCPcopy
hub / github.com/figma/plugin-samples / rotate

Function rotate

circletext/code.ts:25–30  ·  view source on GitHub ↗
(theta: number)

Source from the content-addressed store, hash-verified

23
24// Creates a "rotate" transform.
25function rotate(theta: number) {
26 return [
27 [Math.cos(theta), Math.sin(theta), 0],
28 [-Math.sin(theta), Math.cos(theta), 0]
29 ]
30}
31
32// MAIN PLUGIN CODE
33

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected