We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello, i want to know how to rotate a point by a specific angle function prototype in javascript
var point = {
x: 1;
y: 3;
};
angle in radian
function rotate(point, angle);
thanks a lot :D.
Answers
rotations by default rotate around the origin.
to rotate around any other point start by translating everything so that the rotation point is the origin, do the rotation, then translate back.
thanks a lot. that was helpful