Surface
=================

.. currentmodule:: axioma.core.geometry

.. class:: Surface

	Абстрактный интерфейсный класс площадного объекта

	Унаследован от:

	* :class:`~axioma.core.geometry.GeometryInterface`
	
	От него наследуются:

	* :class:`~axioma.core.geometry.Polygon`
	* :class:`~axioma.mapinfo.Ellipse`
	* :class:`~axioma.mapinfo.Rectangle`

	.. method:: area(area_calc)

		Расчет площади объекта

		:param area_calc: параметр расчета площади
		:type area_calc: :class:`~axioma.core.geometry.PolygonAreaCalculator`
		:rtype: :class:`float`

	.. method:: perimeter(distance_calc)

		Расчета периметра объекта

		:param distance_calc: параметр расчета периметра
		:type distance_calc: :class:`~axioma.core.geometry.DistanceCalculator`
		:rtype: :class:`float`
