mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Create Path.php
This commit is contained in:
parent
ce0a98c7a8
commit
c8ec18f912
30
Algorithm/PathFinding/Path.php
Normal file
30
Algorithm/PathFinding/Path.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package phpOMS\Algorithm\PathFinding
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpOMS\Algorithm\PathFinding;
|
||||
|
||||
/**
|
||||
* Path in grids.
|
||||
*
|
||||
* @package phpOMS\Algorithm\PathFinding
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Path
|
||||
{
|
||||
private array $nodes = [];
|
||||
private float $weight = 0.0;
|
||||
private float $distance = 0.0;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user