2.2.4.35 point
Contents
Name
point
Remark
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.
Hierarchy
- point
Examples
EX1
void point_ex1() { point pt(4, 7); printf("x = %d y = %d\n", pt.x, pt.y); }
Header to Include
origin.h
Reference
Members
| Name | Brief | Example |
|---|---|---|
| constructor which initializes a point object from x and y coordinates |
Property
| Name | Brief | Example |
|---|---|---|
| x coordinate of the point | ||
| y coordinate of the point |