Segment
=======

.. py:class:: Segment

   In the following constructors, additional keyword arguments can be
   provided to set properties of the new :py:class:`Segment`.

   .. py:method:: Segment(p1, p2)

      Construct the line segment from the point *p1* to the point
      *p2*.

   .. py:property:: length

      |getOnlyProp| The length of the Segment, i.e., the distance
      between the two points defining it.

   A :py:class:`Segment` also has the following common properties:

   * :py:attr:`is_visible`
   * :py:attr:`color`
   * :py:attr:`color_floats`
   * :py:attr:`line_thickness`


.. seealso::

   `GeoGebra Segment() reference
   <https://geogebra.github.io/docs/manual/en/commands/Segment/>`_