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() -> None
Point2DDouble(x : float, y : float) -> None
Point2DDouble(pt : Point2DDouble) -> None
Point2DDouble(pt : Point) -> None
__init__(self, *args, **kw)¶__init__ (self)
None
__init__ (self, x : float, y : float)
x (wx.Double) –
y (wx.Double) –
None
__init__ (self, pt : Point2DDouble)
pt (Point2DDouble) –
None
__init__ (self, pt : Point)
pt (wx.Point) –
None
Get(self)¶Get() . (x,y)
Return the x and y properties as a tuple.
Any
GetCrossProduct(self, vec : Point2DDouble)¶vec (Point2DDouble) –
float
GetDistance(self, pt : Point2DDouble)¶pt (Point2DDouble) –
float
GetDistanceSquare(self, pt : Point2DDouble)¶pt (Point2DDouble) –
float
GetDotProduct(self, vec : Point2DDouble)¶vec (Point2DDouble) –
float
GetFloor(self)¶Tuple[int, int]
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[int, int]
GetVectorAngle(self)¶float
GetVectorLength(self)¶float
Normalize(self)¶None
SetVectorAngle(self, degrees : float)¶degrees (wx.Double) –
None
SetVectorLength(self, length : float)¶length (wx.Double) –
None
__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 .