SC2Mapster.com Wiki

SC2 API / Functions / RegionRandomPoint

RegionRandomPoint

point RegionRandomPoint(region r);

Random point from the region

Parameters

region r

Region to get the point from

Return value

point -

  • null: region is empty or null
  • point random point from the region

Examples

Example: Sample Usage
point p = RegionRandomPoint(RegionCircle(Point(50, 50), 10));
// p can be (52.5, 42)

See also

You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
Mar 29, 2010
Last updated
Mar 29, 2010

Author