Interface ISpatialNode
Represents a spatial vertex within the ISpatialGraphEnvironment
having a coordinate (x,y) and a set of outgoing and incoming edge.
Agents can use this node to move from one node to another or on an ege.
Inherited Members
Namespace: Mars.Interfaces.Environments
Assembly: Mars.Interfaces.dll
Syntax
public interface ISpatialNode : INode<ISpatialEdge, ISpatialNode>, IGraphEntity, IEqualityComparer<IGraphEntity>, IPositionable
Properties
NodeGuard
NodeGuard that controls the transition of agents between edges
Declaration
INodeGuard NodeGuard { get; set; }
Property Value
Type | Description |
---|---|
INodeGuard |
Methods
GetDirection(ISpatialEdge, ISpatialEdge)
Gets the direction in form of the compass DirectionType
Declaration
DirectionType GetDirection(ISpatialEdge incoming, ISpatialEdge outgoing)
Parameters
Type | Name | Description |
---|---|---|
ISpatialEdge | incoming | The incoming vector |
ISpatialEdge | outgoing | The outgoing vector |
Returns
Type | Description |
---|---|
DirectionType | Returns the direction in form of a abstract compass. |