********** wx.Point2D ********** Inheritance diagram for `wx.Point2D`: | .. inheritance-diagram:: wx.Point2D | Description =========== `wx.Point2D` represents a point or a vector in a 2d coordinate system with floating point values. Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `Get <#Get>`_ * `GetCrossProduct <#GetCrossProduct>`_ * `GetDistance <#GetDistance>`_ * `GetDistanceSquare <#GetDistanceSquare>`_ * `GetDotProduct <#GetDotProduct>`_ * `GetFloor <#GetFloor>`_ * `GetRounded <#GetRounded>`_ * `GetVectorAngle <#GetVectorAngle>`_ * `GetVectorLength <#GetVectorLength>`_ * `Normalize <#Normalize>`_ * `Set <#Set>`_ * `SetPolarCoordinates <#SetPolarCoordinates>`_ * `SetVectorAngle <#SetVectorAngle>`_ * `SetVectorLength <#SetVectorLength>`_ Properties Summary ^^^^^^^^^^^^^^^^^^ * `Floor <#Floor>`_ * `Rounded <#Rounded>`_ * `VectorAngle <#VectorAngle>`_ * `VectorLength <#VectorLength>`_ * `x <#x>`_ * `y <#y>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__(x=0.0, y=0.0) Create a `w.Point2D` object. **Parameters:** * `x` (double) * `y` (double) | **Returns:** `wx.Point2D `_ -------- .. method:: Get() Return `x` and `y` properties as a tuple. | **Returns:** `(x, y)` -------- .. method:: GetCrossProduct(vec) | **Parameters:** * `vec` (`wx.Point2D `_) | **Returns:** `double` -------- .. method:: GetDistance(pt) | **Parameters:** * `pt` (`wx.Point2D `_) | **Returns:** `double` -------- .. method:: GetDistanceSquare(pt) | **Parameters:** * `pt` (`wx.Point2D `_) | **Returns:** `double` -------- .. method:: GetDotProduct(vec) | **Parameters:** * `vec` (`wx.Point2D `_) | **Returns:** `double` -------- .. method:: GetFloor() Convert to integer. | **Returns:** `(x, y)` -------- .. method:: GetRounded() Convert to integer. | **Returns:** `(x, y)` -------- .. method:: GetVectorAngle() `No docstrings available for this method.` -------- .. method:: GetVectorLength() `No docstrings available for this method.` -------- .. method:: Normalize() `No docstrings available for this method.` -------- .. method:: Set(x=0, y=0) | **Parameters:** * `x` (double) * `y` (double) -------- .. method:: SetPolarCoordinates(angle, length) | **Parameters:** * `angle` * `length` -------- .. method:: SetVectorAngle(degrees) | **Parameters:** * `degrees` (double) -------- .. method:: SetVectorLength(length) | **Parameters:** * `length` (double) -------- Properties ^^^^^^^^^^ .. attribute:: Floor See `GetFloor <#GetFloor>`_ .. attribute:: Rounded See `GetRounded <#GetRounded>`_ .. attribute:: VectorAngle See `GetVectorAngle <#GetVectorAngle>`_ and `SetVectorAngle <#SetVectorAngle>`_ .. attribute:: VectorLength See `GetVectorLength <#GetVectorLength>`_ and `SetVectorLength <#SetVectorLength>`_ .. attribute:: x .. attribute:: y