mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-13 07:18:39 +00:00
Init var
This commit is contained in:
parent
875c55d877
commit
8db115529b
|
|
@ -236,9 +236,7 @@ class Polygon implements D2ShapeInterface
|
||||||
*/
|
*/
|
||||||
public function getBarycenter() : array
|
public function getBarycenter() : array
|
||||||
{
|
{
|
||||||
$barycenter['x'] = 0;
|
$barycenter = ['x' => 0, 'y' => 0];
|
||||||
$barycenter['y'] = 0;
|
|
||||||
|
|
||||||
$count = count($this->coord);
|
$count = count($this->coord);
|
||||||
|
|
||||||
for ($i = 0; $i < $count - 1; $i++) {
|
for ($i = 0; $i < $count - 1; $i++) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user