Declaration ​
pascal
TVoronoiMetric = (vmEuclidean, vmManhattan, vmCustom);
TVoronoiMetricFunc = function (X, Y: TFloat; Point: TFloatPoint): TFloat;Description ​
TVoronoiMetric specifies the mathematical metric used by TVoronoiSampler to determine the distance between a sampling point
Enumeration Values ​
| Value | Description |
|---|---|
vmEuclidean | Calculates standard straight-line distance |
vmManhattan | Calculates taxicab distance |
vmCustom | Uses a user-provided custom metric delegate function (TVoronoiMetricFunc). |
Procedural Delegate ​
TVoronoiMetricFunc allows custom distance metric functions to be passed to TVoronoiSampler.