Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Operations on Vectors [8/13]

This program draws a circular shape consisting of many discs and lines.

The program uses getter function .rotdg from type vector2D to rotate the vector v by the angle i.

The program uses getter function .add from type point2D to move the point center by the vector vRot. This addition was explained in the chapter on points and vectors.

Loading...