Operator operator +
operator +(Edge, Edge)
Creates a new Edge by adding the two left indices together and the two right indices together from both Edge objects.
Declaration
public static Edge operator +(Edge a, Edge b)
Parameters
Type | Name | Description |
---|---|---|
Edge | a | Left edge. |
Edge | b | Right edge. |
Returns
Type | Description |
---|---|
Edge | A new edge where |
operator +(Edge, int)
Creates a new Edge by adding an integer to both indices on an Edge object.
Declaration
public static Edge operator +(Edge a, int b)
Parameters
Type | Name | Description |
---|---|---|
Edge | a | The Edge to add to. |
int | b | The value to add. |
Returns
Type | Description |
---|---|
Edge | A new edge where |