2021-07-01
var A = {x:20, y:60}
var B = {x:80, y:60}
var C = {x:70, y:20}
var theta = 38.66
var rotationPointX = A.x;
var rotationPointY = A.y;
var segmentAB = canvas.line([A,B]).attr({
...
})
var segmentAC = canvas.line([A,C]).attr({
...
})
segmentAC.animate(time).rotate(theta, rotationPointX, rotationPointY);
Watch the video: