point
The point class provides methods and properties common to data points located in a two dimensional or planar space whose (x,y) coordinates are integers.
EX1
void point_ex1() { point pt(4, 7); printf("x = %d y = %d\n", pt.x, pt.y); }
origin.h
Name | Brief | Example |
---|---|---|
point | constructor which initializes a point object from x and y coordinates | Examples |
Name | Brief | Example |
---|---|---|
x | x coordinate of the point | Examples |
y | y coordinate of the point | Examples |