Grid.getSumDisk() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
location |
{Vector2} |
No |
radius |
{int} |
No |
{real|undefined}
Return the sum of numerical values found in cells within the specified disk of this Grid. Strings containing only numbers will also be included. Other values will be ignored. If this Grid does not exist or the disk contains no values that can be summed, {undefined} will be returned.