Class HomogenousRoutingPointsGenerator
Creates evenly distributed points within the defined envelope.
Inheritance
System.Object
HomogenousRoutingPointsGenerator
Implements
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.Cartesian.Routing
Assembly: Mars.Components.dll
Syntax
public class HomogenousRoutingPointsGenerator : IRoutingPointsGenerator
Constructors
| Improve this Doc View SourceHomogenousRoutingPointsGenerator(Int32, Double, Boolean)
Creates the generator with given parameters.
Declaration
public HomogenousRoutingPointsGenerator(int routingPointsCount, double variance = 0.5, bool addCoordinatePoints = true)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | routingPointsCount | Defines the amount of routing points that are created (without possibly additional coordinate points). |
System.Double | variance | Defines the deviation of the generated points to exactly evenly distributed points. |
System.Boolean | addCoordinatePoints | May optionally add points near the coordinate points of existing geometries for better routing stability. |
Methods
| Improve this Doc View SourceGenerate(BoundingBox, IEnumerable<Geometry>)
Creates evenly distributed points within the defined envelope.
Declaration
public IList<Position> Generate(BoundingBox boundingBox, IEnumerable<Geometry> geometries = null)
Parameters
Type | Name | Description |
---|---|---|
BoundingBox | boundingBox | |
System.Collections.Generic.IEnumerable<NetTopologySuite.Geometries.Geometry> | geometries |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<Position> |