Point2d
=======

.. py:module:: rhino3dm

.. py:class:: Point2d

   .. py:method:: Point2d(x, y)

      Initializes a new instance of  from coordinates.

      :param float x: The X (first) coordinate.
      :param float y: The Y (second) coordinate.

   .. py:attribute:: X

      float: Gets or sets the X (first) coordinate of the point.

   .. py:attribute:: Y

      float: Gets or sets the Y (second) coordinate of the point.

   .. py:method:: Encode()

      [todo] add documentation

   .. py:method:: __repr__()

      [todo] add documentation

   .. py:method:: DistanceTo(other)

      Computes the distance between two points.

      :param rhino3dm.Point2d other: Another point.

      :return: The length of the line between the two points, or 0 if either point is invalid.

      :rtype: float
