Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Types point2D and colorA [2/8]

The function discp draws a disc, where the center of the disc is given by the first argument, of type point2D.

The function linep draws a line, where endpoints of the line are given by the first two arguments, of type point2D.

The getter function .dist from type point2D returns the distance between the given points.

Loading...