locked
Rotation in (XOY) RRS feed

  • Question

  • Hello!

    I have 2 points ,A(x1,y1,0) and B(x2,y2,0), and an angle alfa(in radians). I want to rotate the A point circa point B with alfa, and get a new point C(x3,y3,0).

    How can I get the point C?

    Thans?

    Sunday, October 15, 2006 4:32 PM

Answers

  • P = A - B
    Q = P x Mrot
    C = Q + B

    where Mrot is a z-rotation matrix.

    Sunday, October 15, 2006 5:48 PM

All replies

  • P = A - B
    Q = P x Mrot
    C = Q + B

    where Mrot is a z-rotation matrix.

    Sunday, October 15, 2006 5:48 PM
  • Hello!

    Now, when I see the solution, I see that is pure math! :)

    Thanks man!

    Sunday, October 15, 2006 8:59 PM
  • Gaming is all about maths and algebra!

    Kindly,

    ~a.ka. Andr3w

    Wednesday, October 18, 2006 1:34 AM