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
System.Collections.Generic.IEqualityComparer<Mars.Interfaces.Environments.IGraphEntity>.Equals(Mars.Interfaces.Environments.IGraphEntity, Mars.Interfaces.Environments.IGraphEntity)
System.Collections.Generic.IEqualityComparer<Mars.Interfaces.Environments.IGraphEntity>.GetHashCode(Mars.Interfaces.Environments.IGraphEntity)
Namespace: Mars.Interfaces.Environments
Assembly: Mars.Interfaces.dll
Syntax
public interface ISpatialNode : INode<ISpatialEdge, ISpatialNode>, IGraphEntity, IEqualityComparer<IGraphEntity>, IPositionable
Properties
| Improve this Doc View SourceNodeGuard
NodeGuard that controls the transition of agents between edges
Declaration
INodeGuard NodeGuard { get; set; }
Property Value
Type | Description |
---|---|
INodeGuard |
Methods
| Improve this Doc View SourceGetDirection(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. |