Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Types point2D and colorA [1/8]


Types point2D and colorA

The type point2D represents points. It has two members named .x and .y. These members are getters and setters.

Points are used to specify a position in space. The position is given by the coordinates (x,y).

The initializer for type point2D accepts two values that specify the coordinates x and y.

Loading...