fpoint
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.
EX1
void fpoint_ex1() { fpoint fpt(1.2, 7.6); printf("x = %g y = %g\n", fpt.x, fpt.y); }
origin.h
Name | Brief | Example |
---|---|---|
fpoint | constructor which initializes the fpoint object from x and y coordinates | Examples |
Name | Brief | Example |
---|---|---|
x | x coordinate of the point | Examples |
y | y coordinate of the point | Examples |