MCPcopy Index your code
hub / github.com/NikLever/ThreeJS-PathEditor / calcPointOnCircle

Method calcPointOnCircle

geometry.js:73–77  ·  view source on GitHub ↗
( cx, cy, radius, theta )

Source from the content-addressed store, hash-verified

71 }
72
73 static calcPointOnCircle( cx, cy, radius, theta ){
74 const x = Math.cos( theta ) * radius + cx;
75 const y = Math.sin( theta ) * radius + cy;
76 return { x, y };
77 }
78
79 static calcAngleFromXAxis( org, pt ){
80 const x = pt.x - org.x;

Callers 6

exportMethod · 0.80
selectCtrlMethod · 0.80
drawArrowMethod · 0.80
drawNodeMethod · 0.80
nodesToShapeMethod · 0.80
nodesToPathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected