mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +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
|
||||
{
|
||||
$barycenter['x'] = 0;
|
||||
$barycenter['y'] = 0;
|
||||
|
||||
$barycenter = ['x' => 0, 'y' => 0];
|
||||
$count = count($this->coord);
|
||||
|
||||
for ($i = 0; $i < $count - 1; $i++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user