mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-13 02:28:41 +00:00
156 lines
3.2 KiB
PHP
156 lines
3.2 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.0
|
|
*
|
|
* @category TBD
|
|
* @package TBD
|
|
* @author OMS Development Team <dev@oms.com>
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
* @copyright 2013 Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://orange-management.com
|
|
*/
|
|
namespace phpOMS\Math\Shape\D2;
|
|
|
|
use phpOMS\Math\Shape\ShapeInterface;
|
|
|
|
/**
|
|
* 2D Shape interface.
|
|
*
|
|
* @category Framework
|
|
* @package phpOMS\Math
|
|
* @author OMS Development Team <dev@oms.com>
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
* @license OMS License 1.0
|
|
* @link http://orange-management.com
|
|
* @since 1.0.0
|
|
*/
|
|
interface Shape2DInterface extends ShapeInterface
|
|
{
|
|
|
|
/**
|
|
* Get the polygon perimeter.
|
|
*
|
|
* @return \float
|
|
*
|
|
* @since 1.0.0
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
*/
|
|
public function getPerimeter();
|
|
|
|
/**
|
|
* Set the polygon perimeter.
|
|
*
|
|
* @param \float $perimeter Polygon perimeter
|
|
*
|
|
* @return void
|
|
*
|
|
* @since 1.0.0
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
*/
|
|
public function setPerimeter($perimeter);
|
|
|
|
/**
|
|
* Get the polygon perimeter formula.
|
|
*
|
|
* @return \string
|
|
*
|
|
* @since 1.0.0
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
*/
|
|
public function getPerimeterFormula();
|
|
|
|
/**
|
|
* Get the polygon surface.
|
|
*
|
|
* @return \float
|
|
*
|
|
* @since 1.0.0
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
*/
|
|
public function getSurface();
|
|
|
|
/**
|
|
* Set the polygon surface.
|
|
*
|
|
* @param \float $surface Polygon surface
|
|
*
|
|
* @return void
|
|
*
|
|
* @since 1.0.0
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
*/
|
|
public function setSurface($surface);
|
|
|
|
/**
|
|
* Get the polygon surface formula.
|
|
*
|
|
* @return \string
|
|
*
|
|
* @since 1.0.0
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
*/
|
|
public function getSurfaceFormula();
|
|
|
|
/**
|
|
* Get the interior angle sum.
|
|
*
|
|
* @return \int|float
|
|
*
|
|
* @since 1.0.0
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
*/
|
|
public function getInteriorAngleSum();
|
|
|
|
/**
|
|
* Get the interior angle sum formula.
|
|
*
|
|
* @return \string
|
|
*
|
|
* @since 1.0.0
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
*/
|
|
public function getInteriorAngleSumFormula();
|
|
|
|
/**
|
|
* Get the exterior angle sum.
|
|
*
|
|
* @return \int|float
|
|
*
|
|
* @since 1.0.0
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
*/
|
|
public function getExteriorAngleSum();
|
|
|
|
/**
|
|
* Get the exterior angle sum formula.
|
|
*
|
|
* @return \string
|
|
*
|
|
* @since 1.0.0
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
*/
|
|
public function getExteriorAngleSumFormula();
|
|
|
|
/**
|
|
* Get the barycenter of the polygon.
|
|
*
|
|
* @return \float[]
|
|
*
|
|
* @since 1.0.0
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
*/
|
|
public function getBarycenter();
|
|
|
|
/**
|
|
* Reset all values.
|
|
*
|
|
* @since 1.0.0
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
*/
|
|
public function reset();
|
|
}
|