Learn to Program with ZedLX

Free Online Programming Course for Beginners

Arrays [11/11]

This program uses a distinct motion vector for each disc. The motion vectors are given by the mv array.

The product of the motion vector and the execution time execTm() scales the motion vectors, creating the illusion of movement as the displacement from the disc centers grows over time.

Loading...