Point#
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 information.
- class pyqtgraph.Point.Point(*args)[source]#
Extension of QPointF which adds a few missing methods.
- angle(a, units='degrees')[source]#
Returns the angle in degrees from the vector a to self.
- Parameters:
a (
Point
,QPointF
orQPoint
) – The Point to return the angle withunits (
str
, optional) – The units with which to compute the angle with, “degrees” or “radians”, default “degrees”
- Returns:
The angle between two vectors
- Return type:
float