gdesk.graphics.point module

Point.py - Extension of QPointF which adds a few missing methods. Copyright 2010 Luke Campagnola Distributed under MIT/X11 license. See license.txt for more infomation.

class gdesk.graphics.point.Point(*args)

Bases: PySide2.QtCore.QPointF

Extension of QPointF which adds a few missing methods.

copy()
cross(a)
dot(a)

Returns the dot product of a and this Point.

length()

Returns the vector length of this Point.

max()
min()
norm()

Returns a vector in the same direction with unit length.

proj(b)

Return the projection of this vector onto the vector b

toQPoint()