point

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