Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PointF class

Applies to: desktop apps only

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.

ConstructorDescription
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.

MethodDescription
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.

 

Data Members

The following table lists the members exposed by the PointF object.

Data MembersTypeDescription
XREALHorizontal coordinate.
YREALVertical coordinate.

 

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2015 Microsoft