Triangle rotation in computer graphics5/24/2023 ![]() In matrix form, the new ending coordinates of the line after rotation may be obtained as. Thus, New ending coordinates of the line after rotation = (1.46, 5.46). Let new ending coordinates of the line after rotation = (X new, Y new).Īpplying the rotation equations, we have. Old ending coordinates of the line = (X old, Y old) = (4, 4).Then, we re-draw a line between the new end points. ![]() We rotate a straight line by its end points with the same angle. Apply 30 degree rotation anticlockwise direction on the line segment and find out the new coordinates of the line. Given a line segment with starting point as (0, 0) and ending point as (4, 4). ![]() PRACTICE PROBLEMS BASED ON 2D ROTATION IN COMPUTER GRAPHICS. In Matrix form, the above rotation equations may be represented as-įor homogeneous coordinates, the above rotation matrix may be represented as a 3 x 3 matrix as. This rotation is achieved by using the following rotation equations.
0 Comments
Leave a Reply. |