.. _f-geometrysegment: module ``special.geometry_segment`` =================================== .. inheritance-diagram:: ensae_teaching_cs.special.geometry_segment Short summary +++++++++++++ module ``ensae_teaching_cs.special.geometry_segment`` Defines a segment :githublink:`%|py|5` Classes +++++++ +---------------------------------------------------------------------------------------+-------------------------+ | class | truncated documentation | +=======================================================================================+=========================+ | :class:`GeometrySegment ` | two points | +---------------------------------------------------------------------------------------+-------------------------+ Methods +++++++ +--------------------------------------------------------------------------------------------------+----------------------------------------------+ | method | truncated documentation | +==================================================================================================+==============================================+ | :py:meth:`__eq__ ` | equal | +--------------------------------------------------------------------------------------------------+----------------------------------------------+ | :py:meth:`__imul__ ` | multiplication | +--------------------------------------------------------------------------------------------------+----------------------------------------------+ | :py:meth:`__init__ ` | constructor | +--------------------------------------------------------------------------------------------------+----------------------------------------------+ | :py:meth:`__len__ ` | dimension | +--------------------------------------------------------------------------------------------------+----------------------------------------------+ | :py:meth:`__neq__ ` | different | +--------------------------------------------------------------------------------------------------+----------------------------------------------+ | :py:meth:`__str__ ` | usual | +--------------------------------------------------------------------------------------------------+----------------------------------------------+ | :meth:`equation ` | dimension 2 only | +--------------------------------------------------------------------------------------------------+----------------------------------------------+ | :meth:`equation_eval ` | | +--------------------------------------------------------------------------------------------------+----------------------------------------------+ | :meth:`norm2 ` | | +--------------------------------------------------------------------------------------------------+----------------------------------------------+ | :meth:`reverse ` | switch extremities | +--------------------------------------------------------------------------------------------------+----------------------------------------------+ | :meth:`topdown ` | the vector only points in the same semi-plan | +--------------------------------------------------------------------------------------------------+----------------------------------------------+ | :meth:`vector ` | | +--------------------------------------------------------------------------------------------------+----------------------------------------------+ Documentation +++++++++++++ .. automodule:: ensae_teaching_cs.special.geometry_segment :members: :special-members: __init__ :show-inheritance: