-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEdgeInfo.cs
More file actions
29 lines (26 loc) · 1.07 KB
/
EdgeInfo.cs
File metadata and controls
29 lines (26 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System.Collections.Generic;
namespace RT.Coordinates;
/// <summary>
/// Encapsulates information returned by <see cref="Structure{TCell}.svgEdgeType(Link{Vertex}, List{TCell})"/>.</summary>
/// <typeparam name="TCell">
/// The type of cell used by the structure.</typeparam>
public struct EdgeInfo<TCell>
{
/// <summary>The type of edge to use when drawing an edge in SVG.</summary>
public EdgeType EdgeType;
/// <summary>
/// Contains a cell adjacent to the edge. If <see cref="EdgeType"/> is <see cref="EdgeType.Outline"/>, this is the
/// only cell used.</summary>
public TCell Cell1;
/// <summary>
/// Contains the cell on the opposite side of the edge from <see cref="Cell1"/>. If <see cref="EdgeType"/> is <see
/// cref="EdgeType.Outline"/>, this field is unused.</summary>
public TCell Cell2;
/// <summary>Deconstructor.</summary>
public readonly void Deconstruct(out EdgeType edgeType, out TCell cell1, out TCell cell2)
{
edgeType = EdgeType;
cell1 = Cell1;
cell2 = Cell2;
}
}