A blog for C programs, notes and articles about C, the programming language.
Search This Blog
Two Stroke Engine Piston Movement Animation C Program - CG Lab Program
This program simulates the motion of the components of a two stroke engine. It shows the movement of piston, connecting rod and crank by animating them in c. The program uses the graphics library (grapics.h) to simulate the piston movement in two stroke engine. This is a computer graphics lab (CG lab) problem. The program is given below. The program uses sin and cos functions to simulate the crank. Also it uses the equation to find the distance between to points.
No comments:
Post a Comment