Learn Programming - ZedLX

A Free Computer Programming Tutorial for Beginners

Types point2D, vector2D and colorA [1/12]

Types point2D, vector2D 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...