Struct LineGraph.Edge
Assembly: AnyPath.dll
Syntax
public struct LineGraph.Edge
Constructors
Edge(int, int)
Declaration
public Edge(int vertexIndexA, int vertexIndexB)
Parameters
| Type |
Name |
Description |
| int |
vertexIndexA |
|
| int |
vertexIndexB |
|
Edge(int, int, float, int, int)
Declaration
public Edge(int vertexIndexA, int vertexIndexB, float enterCost, int flags, int id = 0)
Parameters
| Type |
Name |
Description |
| int |
vertexIndexA |
|
| int |
vertexIndexB |
|
| float |
enterCost |
|
| int |
flags |
|
| int |
id |
|
Fields
enterCost
Optional extra cost associated with traversing this edge. This is added to the length of the edge.
A value of infinity makes this edge "unwalkable", essentially removing it from the graph.
Declaration
Field Value
flags
Optional user defined flags for this edge.
Declaration
Field Value
id
An optional Id that can be used to map back to something else, like a MonoBehaviour script
Declaration
Field Value
vertexIndexA
Declaration
Field Value
vertexIndexB
Declaration
Field Value
Extension Methods