C languageProgramming

Write a C program to Rotate a 2D primitive (or object) using C in Computer Graphics according to user choice.

Program: 62

Write a C program to rotate a 2D primitive, if degree of rotation is input through the keyboard.

Output

Enter the value of X1 and Y1: 100 100
Enter the value of X2 and Y2: 200 100
Enter the degree of rotation: 90

Lokesh Kumar

Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.