

Let the new coordinates of corner A after rotation = (X new, Y new). Old corner coordinates of the triangle = A (0, 0), B (1, 0), C (1, 1).We always rotate a polygon by rotating each of its vertexes with the same rotation angle. Rotate the triangle by 90 degrees anticlockwise direction and find out the new coordinates. Problem Statement: Given a triangle with corner coordinates (0, 0), (1, 0) and (1, 1). Now let's understand this by using an example, It's representation in matrix form will be as follows, The calculation of values of x' and y' are as follows, More clearly let us assume a point P, on rotating a point P(x, y) by an angle A about the origin we get a point P' (x', y'). In order to rotate an object, we need to rotate each vertex of the figure individually. New co-ordinates of the object O after rotation = (X new, Y new).Initial angle of the object O with respect to origin = Φ.Initial co-ordinates of the object O = (X old, Y old).Let's now consider a point object O which has to be rotated from one angle to another. Same for circle also, it can be obtained by center position by the specified angle. Also, the polygon is rotated by shifting every vertex with the help of the same rotational angle. For example, a straight line is rotated by the endpoints with the same angle and the line is re-drawn between the new endpoints. When we rotate any object, then every point of that object is rotated by the same angle. The positive value of the rotation angle rotates an object in an anti-clockwise direction while the negative value of the rotation angle rotates an object in a clockwise direction. There are two types of rotations according to the direction of the movement of the object. A rotation point is also called a pivot point. It is a process of changing the angle of the object which can be clockwise or anticlockwise, while we have to specify the angle of rotation and rotation point. Rotation is a process of rotating an object concerning an angle in a two-dimensional plane. Rotation is a type of transformation that is very often used in computer graphics and image processing. Submitted by Monika Sharma, on April 30, 2020 Computer Graphics | Rotation: In this tutorial, we are going to learn about the Rotation which is a type of Transformation in computer graphics, type of Transformation in brief, etc.
