PointF class

PointF class

Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane. Compatible with .NET System.Drawing.PointF.

Inheritance:PointF → Point

The PointF type exposes the following members:

Constructors

ConstructorDescription
__init__(self, x=0.0, y=0.0)Creates a point with the specified coordinates.

Properties

PropertyDescription
xGets or sets the x-coordinate of this point.
Read/write float.
yGets or sets the y-coordinate of this point.
Read/write float.

Remarks

Points are compared by their coordinates with == and can be used as dictionary keys or set members.

See Also