【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
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 |
|---|---|---|
| point | constructor which initializes a point object from x and y coordinates | Examples |
Property
| Name | Brief | Example |
|---|---|---|
| x | x coordinate of the point | Examples |
| y | y coordinate of the point | Examples |