.. _f-geometrypoint: module ``special.geometry_point`` ================================= .. inheritance-diagram:: ensae_teaching_cs.special.geometry_point Short summary +++++++++++++ module ``ensae_teaching_cs.special.geometry_point`` Defines a point in N-dimension :githublink:`%|py|5` Classes +++++++ +-----------------------------------------------------------------------------------------+------------------------------------------------------+ | class | truncated documentation | +=========================================================================================+======================================================+ | :class:`GeometryException ` | raises when an issue arises with class GeometryPoint | +-----------------------------------------------------------------------------------------+------------------------------------------------------+ | :class:`GeometryPoint ` | one point | +-----------------------------------------------------------------------------------------+------------------------------------------------------+ Methods +++++++ +---------------------------------------------------------------------------------------+----------------------------------------------------+ | method | truncated documentation | +=======================================================================================+====================================================+ | :py:meth:`__add__ ` | addition | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :py:meth:`__cmp__ ` | comparison | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :py:meth:`__eq__ ` | is equal | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :py:meth:`__iadd__ ` | addition | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :py:meth:`__imul__ ` | multiplication by a scalar | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :py:meth:`__init__ ` | | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :py:meth:`__len__ ` | returns the dimension | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :py:meth:`__lt__ ` | inferior | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :py:meth:`__mul__ ` | multiplication by a scalar | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :py:meth:`__neq__ ` | is different | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :py:meth:`__repr__ ` | ``eval(__repr__)`` should return the same object | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :py:meth:`__str__ ` | converts into string | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :py:meth:`__sub__ ` | substraction | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :meth:`angle ` | return the angle | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :meth:`cossin ` | return the cos, sin of a vector (dimension 2 only) | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :meth:`norm2 ` | return the norm | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :meth:`product ` | vectoriel product, dimension 2 only | +---------------------------------------------------------------------------------------+----------------------------------------------------+ | :meth:`scalar ` | scalar product | +---------------------------------------------------------------------------------------+----------------------------------------------------+ Documentation +++++++++++++ .. automodule:: ensae_teaching_cs.special.geometry_point :members: :special-members: __init__ :show-inheritance: