Loading...
Logo
Processing Forum
submarinesinthesky's Profile
1 Posts
0 Responses
0 Followers

Activity Trend

Last 30 days
Show:
Private Message
    Hello,

    I want to create a simulation of rotating a rectangle from two points back and forth and I am completely lost on how I could do this.

    Elaborating on the concept:

    Say there is a rectangle of 100 x 100 units on the x-y plane with the rectangle's center at the origin.

    I want the rectangle to rotate slowly by 20 degrees anti-clockwise from the point of rotation (on the cartesian plans) as (20,20). After rotating the 20 degrees, it rotates clock-wise 20 degrees from the same point of rotation back to its original position.

    It then immediately rotates clockwise from the point of rotation (on the cartesian plans) as (-20,20). After rotating the 20 degrees, it rotates anticlock-wise 20 degrees from the same point of rotation back to its original position.

    I really appreciate your help!

    Thank you.