PointF Class

The PointF class encapsulates a point in a 2-D coordinate system.

PointF has these types of members:

Constructors

The PointF class has these constructors.
Constructor Description
PointF::PointF() Creates a PointF object and initializes the X and Y data members to zero. This is the default constructor.
PointF::PointF(PointF&) Creates a new PointF object and copies the data from another PointF object.
PointF::PointF(REAL,REAL) Creates a PointF object using two real numbers to specify the X and Y data members.
PointF::PointF(SizeF&) Creates a PointF object using a SizeF object to specify the X and Y data members.

Methods

The PointF class has these methods.
Method Description
PointF::Equals The PointF::Equals method determines whether two PointF objects are equal. Two points are considered equal if they have the same X and Y data members.
PointF::operator-(PointF&) The PointF::operator- method subtracts the X and Y data members of two PointF objects.
PointF::operator+(PointF&) The PointF::operator+ method adds the X and Y data members of two PointF objects.

Methods

The PointF class has these methods.

Method Description
PointF::Equals The PointF::Equals method determines whether two PointF objects are equal. Two points are considered equal if they have the same X and Y data members.
PointF::PointF Creates a PointF object and initializes the X and Y data members to zero. This is the default constructor.
PointF::PointF Creates a new PointF object and copies the data from another PointF object.
PointF::PointF Creates a PointF object using a SizeF object to specify the X and Y data members.
PointF::PointF Creates a PointF object using two real numbers to specify the X and Y data members.
PointF::operator- The PointF::operator- method subtracts the X and Y data members of two PointF objects.
PointF::operator+ The PointF::operator+ method adds the X and Y data members of two PointF objects.

Requirements

Target Platform Windows