【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.4.14 fpoint
Contents
Name
fpoint
Remark
The fpoint class provides methods and properties common to data points located in a two dimensional or planar space whose (x,y) coordinates are doubles.
Hierarchy
- fpoint
Examples
EX1
void fpoint_ex1() { fpoint fpt(1.2, 7.6); printf("x = %g y = %g\n", fpt.x, fpt.y); }
Header to Include
origin.h
Reference
Members
| Name | Brief | Example |
|---|---|---|
| fpoint | constructor which initializes the fpoint 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 |