Class Outliner
Calculates points that create an outline around a set of points.
Inheritance
System.Object
Outliner
Namespace: InsaneScatterbrain.MapGraph
Syntax
public class Outliner : object
Properties
Bounds
Get/sets the bounds in which the outline points should be.
Declaration
public Vector2Int Bounds { get; set; }
Property Value
Type | Description |
---|---|
Vector2Int |
Corners
Get/sets whether or not to include corner points into the outline.
Declaration
public bool Corners { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Mask
Declaration
public Mask Mask { get; set; }
Property Value
Type | Description |
---|---|
Mask |
Thickness
Get/sets the thickness of the outline.
Declaration
public int Thickness { set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ThicknessBottom
Declaration
public int ThicknessBottom { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ThicknessLeft
Declaration
public int ThicknessLeft { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ThicknessRight
Declaration
public int ThicknessRight { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ThicknessTop
Declaration
public int ThicknessTop { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
CalculateInline(IEnumerable<Vector2Int>, ref List<Vector2Int>)
Calculates the points that inline the given set of points and places them in the result list.
Declaration
public void CalculateInline(IEnumerable<Vector2Int> points, ref List<Vector2Int> result)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Vector2Int> | points | The points to inline. |
List<Vector2Int> | result | The list to fill with the outline points. |
CalculateOutline(IEnumerable<Vector2Int>, ref List<Vector2Int>)
Calculates the points that outline the given set of points and places them in the result list.
Declaration
public void CalculateOutline(IEnumerable<Vector2Int> points, ref List<Vector2Int> result)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Vector2Int> | points | The points to outline. |
List<Vector2Int> | result | The list to fill with the outline points. |