RegionCircle
region RegionCircle(point base, fixed radius);
Create a circle region around a point.
Parameters
- point base
Center of the circle. If the center is null, the
- fixed radius
Radius of the circle
Return value
region - Circle shaped region centered around the base.
Examples
- Example #1: Sample Usage
region r = RegionCircle(Point(50, 50), 30); // A region circle around point (50, 50) of 30 radius.
- Example #2: Units Around
unitgroup UnitsAround(unit u, fixed radius) { return UnitGroup(null, c_playerAny, RegionCircle(UnitGetPosition(u), radius), null, 0); }
- Example #3: Empty region
region r = RegionCircle(null, 0); // An empty region