Class Region
Implements
Namespace: Scripting
Syntax
public class Region : INamedItem
Constructors
Region(String, IEnumerable<IReadable2DLocation>)
Construct a new region
Declaration
public Region(string name, IEnumerable<IReadable2DLocation> points)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the region |
System.Collections.Generic.IEnumerable<IReadable2DLocation> | points | The enumeration of points defining the region |
Properties
BoundingBox
Get the bounding box of this region
Declaration
public Rectangle BoundingBox { get; }
Property Value
Type | Description |
---|---|
Rectangle |
Methods
Contains(IReadable2DLocation)
Test if the region contains the location
Declaration
public bool Contains(IReadable2DLocation location)
Parameters
Type | Name | Description |
---|---|---|
IReadable2DLocation | location | The location |
Returns
Type | Description |
---|---|
System.Boolean | True if the region contains the location, otherwise false |