This class describes the obstacles that are used by implementations of IRouterPartition to subdivide an area into PartitionCells.
Inheritance Hierarchy
Members
No filters for this type
Constructors
Creates a new RoutingObstacle instance with the given bounds and additional data.
Creates a new RoutingObstacle instance with the given bounds and additional data.
Parameters
- bounds: Rect
- the bounds of the obstacle
- data: any
- the additional data associated with the obstacle
Properties
Gets the bounds of the obstacle.
Gets the bounds of the obstacle.
Gets or sets the cost penalty for entering this obstacle during the path search phase of EdgeRouter.
Gets or sets the cost penalty for entering this obstacle during the path search phase of EdgeRouter.
final
Property Value
the cost penalty for entering this obstacle
Throws
- Exception ({ name: 'ArgumentError' })
- if the cost is negative
Default Value
The default value is: 0
Entering this obstacle does not induce any penalty.