.. py:module:: point The class Point =============== The class :py:class:`Point` point represents a point of the 2D space. .. py:class:: Point(x, y) .. rubric:: Class methods: .. py:method:: from_dict(dic) returns a point from a :py:class:`dict` {"x": x_value, "y": y_value} .. rubric:: Instance attributes .. py:attribute:: x the x coordinate of the point :py:class:`float` or :py:class:`int` .. py:attribute:: y the y coordinate of the point :py:class:`float` or :py:class:`int` .. rubric:: Instance methods: .. py:method:: to_dict() Returns a :py:class:`dict` {"x": x_value, "y": y_value} .. py:method:: rasterization(mtx): Given a geometrical transformation matrix, it returns a :py:class:`~point.Point` result of the window-to-viewport transform of the point The class suports the method :py:class:`str` and the operator `==`. The class :py:class:`Point` is implemented in the file :download:`point.py `. You can pass the tests of the following test files :download:`test-point.txt `.