wx.Point2D¶
Class Hierarchy¶
Inheritance diagram for class Point2D:

Methods Summary¶Get() . (x,y) |
|
Returns an immutable representation of the |
|
Properties Summary¶See |
|
See |
|
See |
|
A public C++ attribute of type Double . |
|
A public C++ attribute of type Double . |
Class API¶wx.Point2D(object)¶Possible constructors:
Point2DDouble()
Point2DDouble(x, y)
Point2DDouble(pt)
Point2DDouble(pt)
__init__(self, *args, **kw)¶__init__ (self)
__init__ (self, x, y)
x (wx.Double) –
y (wx.Double) –
__init__ (self, pt)
pt (Point2DDouble) –
__init__ (self, pt)
pt (wx.Point) –
Get(self)¶Get() . (x,y)
Return the x and y properties as a tuple.
PyObject
GetCrossProduct(self, vec)¶vec (Point2DDouble) –
wx.Double
GetDistance(self, pt)¶pt (Point2DDouble) –
wx.Double
GetDistanceSquare(self, pt)¶pt (Point2DDouble) –
wx.Double
GetDotProduct(self, vec)¶vec (Point2DDouble) –
wx.Double
GetFloor(self)¶tuple
( x, y )
GetIM(self)¶Returns an immutable representation of the wx.Point2D object, based on namedtuple.
This new object is hashable and can be used as a dictionary key,
be added to sets, etc. It can be converted back into a real wx.Point2D
with a simple statement like this: obj = wx.Point2D(imObj).
GetRounded(self)¶tuple
( x, y )
GetVectorAngle(self)¶wx.Double
GetVectorLength(self)¶wx.Double
Normalize(self)¶SetVectorAngle(self, degrees)¶degrees (wx.Double) –
SetVectorLength(self, length)¶length (wx.Double) –
__bool__(self)¶__getitem__(self, idx)¶__len__(self)¶__nonzero__(self)¶__reduce__(self)¶__repr__(self)¶__setitem__(self, idx, val)¶__str__(self)¶__ne__(self)¶pt (Point2DDouble) –
__imul__(self)¶pt (Point2DDouble) –
__iadd__(self)¶pt (Point2DDouble) –
__sub__(self)¶__isub__(self)¶pt (Point2DDouble) –
__idiv__(self)¶pt (Point2DDouble) –
__eq__(self)¶pt (Point2DDouble) –
VectorAngle¶See GetVectorAngle and SetVectorAngle
VectorLength¶See GetVectorLength and SetVectorLength
m_x¶A public C++ attribute of type Double .
m_y¶A public C++ attribute of type Double .