Class SpatialGraphEntityExtensions
Inheritance
System.Object
SpatialGraphEntityExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Components.Environments
Assembly: Mars.Components.dll
Syntax
public static class SpatialGraphEntityExtensions
Fields
| Improve this Doc View SourceLaneWidth
Declaration
public const double LaneWidth = 3.5
Field Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceCalculateNewPositionFor(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 |