
i know (x1,y1), (x2,y2) and the angle... how can i find (x3,y3)... help wud be appreciated
keepin in mind that the distance between the (x1,y1) and (x2,y2) is equal to (x2,y2) and (x3,y3)

Code: Select all
core::vector2df vector(x1, y1);
vector.rotateBy(angle, vector2df(x2, y2)); // where angle is anticlockwise in degrees
// vector is now == x3, y3