.. py:module:: circle The class Circle ================= The class :py:class:`Circle` represents a circle of the 2D space through its center, radius and color. .. py:class:: Circle(center, radius, color) .. rubric:: Class methods: .. py:method:: from_dict(dic) returns a Circle from a :py:class:`dict` .. rubric:: Attributes: .. py:attribute:: color the color of the circle, an (R, G, B) tuple .. py:attribute:: center the center of the circle (:py:class:`Point`) .. py:attribute:: radius the radius of the circle (:py:class:`float`) .. rubric:: Methods: .. py:method:: to_dict() Returns a :py:class:`dict` representing the circle .. py:method:: bounding_box() To be implemented. Returns the bounding box of the circle (:py:class:`Rectangle`) .. py:method:: rasterization(mtx) To be implemented. Returns a list of pixels :py:class:`point.Point` corresponding the circle's rasterization with the given window-to -viewport transformations matrix mtx The class supports the function :py:func:`str` and the comparison operator `==`. The class :py:class:`Circle` is implemented in the file :download:`circle.py `. You can pass the tests of the following test files :download:`test-circle.txt `.