PointF constructor

init(self, x=0.0, y=0.0)

Creates a point with the specified coordinates.

def __init__(self, x=0.0, y=0.0):
    ...
ParameterTypeDescription
xfloatThe horizontal position of the point.
yfloatThe vertical position of the point.

Exceptions

ExceptionDescription
TypeErrorA coordinate is not a number.

See Also