Class SpatialGraphEntityExtensions
Inheritance
System.Object
SpatialGraphEntityExtensions
Namespace: Mars.Components.Environments
Assembly: Mars.Components.dll
Syntax
public static class SpatialGraphEntityExtensions : object
Fields
LaneWidth
Declaration
public const double LaneWidth = null
Field Value
Type | Description |
---|---|
System.Double |
Methods
CalculateNewPositionFor(ISpatialGraphEntity, Route, out Double)
Calculates the next geo coordinate on the geometric line with a relative position
getting form
PositionOnCurrentEdge
of the ISpatialGraphEntity
Declaration
public static Position CalculateNewPositionFor(this ISpatialGraphEntity entity, Route route, out double bearing)
Parameters
Type | Name | Description |
---|---|---|
ISpatialGraphEntity | entity | The entity with source position |
Route | route | The route move forward |
System.Double | bearing | The output bearing for this step. |
Returns
Type | Description |
---|---|
Position |