Point class (gdiplustypes.h)
The Point class encapsulates a point in a 2-D coordinate system.
Methods
The Point class has these methods.
Point::Equals The Point::Equals method determines whether two Point objects are equal. Two points are considered equal if they have the same X and Y data members. |
Point::operator+ The Point::operator+ method adds the X and Y data members of two Point objects. |
Point::operator- The Point::operator- method subtracts the X and Y data members of two Point objects. |
Point::Point Creates a Point object and initializes the X and Y data members to zero. This is the default constructor. |
Point::Point Creates a new Point object and copies the data members from another Point object. |
Point::Point Creates a Point object using a Size object to initialize the X and Y data members. |
Point::Point Creates a Point object using two integers to initialize the X and Y data members. |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | gdiplustypes.h |