zahinekbal / codeWith-hacktoberfest

MIT License
23 stars 111 forks source link

Create transformation_in_2D_triangle.cpp #206

Closed akg2000 closed 3 years ago

akg2000 commented 3 years ago

To run the code you can tale the following example-

Enter first coordinates of the triangle: 50 150 Enter second coordinates of the triangle: 150 200 Enter third coordinates of the triangle: 250 300 Translation Vector: 100 100 The angle of rotation: 30 Shearing Factor: 2 Scaling Factor: 2 2