Skip to content

RoutePoint

public readonly struct RoutePoint

Namespace MapExpansions

One point on the centre line of a connection’s road surface.

public readonly PathPoint Point

Type: PathPoint

public readonly RouteStyle Style

Type: RouteStyle

Style of the stretch from this point to the next one.

public readonly float RoadWidth

Road width at this point; 0 takes ConnectionDefinition.RoadWidth. Changes ease in along the leg.

public readonly float MedianWidth

Width of the barrier between the two directions at this point, 0 for none. Where it narrows to nothing, the barrier ramps down into the road.

public RoutePoint(
PathPoint point,
RouteStyle style,
float roadWidth = 0f,
float medianWidth = 0f)

Types: PathPoint, RouteStyle