Class Outliner
Calculates points that create an outline around a set of points.
Inheritance
object
Outliner
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.MapGraph
Syntax
public class Outliner
Properties
Bounds
Get/sets the bounds in which the outline points should be.
Declaration
public Vector2Int Bounds { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector2Int |
Corners
Get/sets whether or not to include corner points into the outline.
Declaration
public bool Corners { get; set; }
Property Value
Type | Description |
---|---|
bool |
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 |
---|---|
int |
ThicknessBottom
Declaration
public int ThicknessBottom { get; set; }
Property Value
Type | Description |
---|---|
int |
ThicknessLeft
Declaration
public int ThicknessLeft { get; set; }
Property Value
Type | Description |
---|---|
int |
ThicknessRight
Declaration
public int ThicknessRight { get; set; }
Property Value
Type | Description |
---|---|
int |
ThicknessTop
Declaration
public int ThicknessTop { get; set; }
Property Value
Type | Description |
---|---|
int |
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 |
---|---|---|
System.Collections.Generic.IEnumerable<T><UnityEngine.Vector2Int> | points | The points to inline. |
System.Collections.Generic.List<T><UnityEngine.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 |
---|---|---|
System.Collections.Generic.IEnumerable<T><UnityEngine.Vector2Int> | points | The points to outline. |
System.Collections.Generic.List<T><UnityEngine.Vector2Int> | result | The list to fill with the outline points. |