.. include:: headings.inc .. _RealPoint: ========================================================================================================================================== |phoenix_title| **RealPoint** ========================================================================================================================================== A :ref:`RealPoint` is a useful data structure for graphics operations. It contains floating point `x` and `y` members. See :ref:`Point` for an integer version. Note that the coordinates stored inside a :ref:`RealPoint` object may be negative and that :ref:`RealPoint` functions do not perform any check against negative values. .. seealso:: :ref:`Point` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **RealPoint** .. raw:: html

Inheritance diagram of RealPoint

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~RealPoint.__init__` Initializes to zero the x and y members. :meth:`~RealPoint.Get` Return the point's properties as a tuple. :meth:`~RealPoint.__getitem__` :meth:`~RealPoint.__len__` :meth:`~RealPoint.__nonzero__` :meth:`~RealPoint.__reduce__` :meth:`~RealPoint.__repr__` :meth:`~RealPoint.__setitem__` :meth:`~RealPoint.__str__` :meth:`~RealPoint.__iadd__` :meth:`~RealPoint.__isub__` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: RealPoint(object) A RealPoint is a useful data structure for graphics operations. **Possible constructors**:: RealPoint() RealPoint(x, y) RealPoint(pt) .. method:: __init__(self, *args, **kw) |overload| **Overloaded Implementations**: **~~~** **__init__** `(self)` Initializes to zero the x and y members. **~~~** **__init__** `(self, x, y)` Initializes the point with the given coordinates. :param `x`: :type `x`: float :param `y`: :type `y`: float **~~~** **__init__** `(self, pt)` Converts the given :ref:`Point` (with integer coordinates) to a :ref:`RealPoint`. :param `pt`: :type `pt`: Point **~~~** .. method:: Get(self) Return the point's properties as a tuple. :rtype: `tuple` :returns: ( `x`, `y` ) .. 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:: __iadd__(self, *args, **kw) |overload| **Overloaded Implementations**: **~~~** **__iadd__** `(self)` :param `sz`: :type `sz`: Size **~~~** **__iadd__** `(self)` :param `pt`: :type `pt`: RealPoint **~~~** .. method:: __isub__(self, *args, **kw) |overload| **Overloaded Implementations**: **~~~** **__isub__** `(self)` :param `sz`: :type `sz`: Size **~~~** **__isub__** `(self)` :param `pt`: :type `pt`: RealPoint **~~~**