.. include:: headings.inc .. _Point2DDouble: ========================================================================================================================================== |phoenix_title| **Point2DDouble** ========================================================================================================================================== | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **Point2DDouble** .. raw:: html

Inheritance diagram of Point2DDouble

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~Point2DDouble.__init__` :meth:`~Point2DDouble.Get` Get() -> (x,y) :meth:`~Point2DDouble.GetCrossProduct` :meth:`~Point2DDouble.GetDistance` :meth:`~Point2DDouble.GetDistanceSquare` :meth:`~Point2DDouble.GetDotProduct` :meth:`~Point2DDouble.GetFloor` :meth:`~Point2DDouble.GetRounded` :meth:`~Point2DDouble.GetVectorAngle` :meth:`~Point2DDouble.GetVectorLength` :meth:`~Point2DDouble.Normalize` :meth:`~Point2DDouble.SetVectorAngle` :meth:`~Point2DDouble.SetVectorLength` :meth:`~Point2DDouble.__getitem__` :meth:`~Point2DDouble.__len__` :meth:`~Point2DDouble.__nonzero__` :meth:`~Point2DDouble.__reduce__` :meth:`~Point2DDouble.__repr__` :meth:`~Point2DDouble.__setitem__` :meth:`~Point2DDouble.__str__` :meth:`~Point2DDouble.__ne__` :meth:`~Point2DDouble.__imul__` :meth:`~Point2DDouble.__iadd__` :meth:`~Point2DDouble.__sub__` :meth:`~Point2DDouble.__isub__` :meth:`~Point2DDouble.__idiv__` :meth:`~Point2DDouble.__eq__` ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~Point2DDouble.VectorAngle` See :meth:`~Point2DDouble.GetVectorAngle` and :meth:`~Point2DDouble.SetVectorAngle` :attr:`~Point2DDouble.VectorLength` See :meth:`~Point2DDouble.GetVectorLength` and :meth:`~Point2DDouble.SetVectorLength` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: Point2DDouble(object) **Possible constructors**:: Point2DDouble() Point2DDouble(x, y) Point2DDouble(pt) Point2DDouble(pt) .. method:: __init__(self, *args, **kw) |overload| **Overloaded Implementations**: **~~~** **__init__** `(self)` **~~~** **__init__** `(self, x, y)` :param `x`: :type `x`: float :param `y`: :type `y`: float **~~~** **__init__** `(self, pt)` :param `pt`: :type `pt`: Point2DDouble **~~~** **__init__** `(self, pt)` :param `pt`: :type `pt`: Point **~~~** .. method:: Get(self) Get() -> (x,y) Return the x and y properties as a tuple. :rtype: `PyObject` .. method:: GetCrossProduct(self, vec) :param `vec`: :type `vec`: Point2DDouble :rtype: `float` .. method:: GetDistance(self, pt) :param `pt`: :type `pt`: Point2DDouble :rtype: `float` .. method:: GetDistanceSquare(self, pt) :param `pt`: :type `pt`: Point2DDouble :rtype: `float` .. method:: GetDotProduct(self, vec) :param `vec`: :type `vec`: Point2DDouble :rtype: `float` .. method:: GetFloor(self) :rtype: `tuple` :returns: ( `x`, `y` ) .. method:: GetRounded(self) :rtype: `tuple` :returns: ( `x`, `y` ) .. method:: GetVectorAngle(self) :rtype: `float` .. method:: GetVectorLength(self) :rtype: `float` .. method:: Normalize(self) .. method:: SetVectorAngle(self, degrees) :param `degrees`: :type `degrees`: float .. method:: SetVectorLength(self, length) :param `length`: :type `length`: float .. method:: __getitem__(self, idx) .. method:: __len__(self) .. method:: __nonzero__(self) .. method:: __reduce__(self) .. method:: __repr__(self) .. method:: __setitem__(self, idx, val) .. method:: __str__(self) .. method:: __ne__(self) :param `pt`: :type `pt`: Point2DDouble .. method:: __imul__(self, *args, **kw) .. method:: __iadd__(self) :param `pt`: :type `pt`: Point2DDouble .. method:: __sub__(self) .. method:: __isub__(self) :param `pt`: :type `pt`: Point2DDouble .. method:: __idiv__(self, *args, **kw) .. method:: __eq__(self) :param `pt`: :type `pt`: Point2DDouble .. attribute:: VectorAngle See :meth:`~Point2DDouble.GetVectorAngle` and :meth:`~Point2DDouble.SetVectorAngle` .. attribute:: VectorLength See :meth:`~Point2DDouble.GetVectorLength` and :meth:`~Point2DDouble.SetVectorLength`