You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Relations » AVL.CreatePointGraph

AVL.CreatePointGraph

Creates a graph of points that lie close to each other.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreatePointGraph
(
	IList<AvlNet.Point2D> inPoints,
	int inMaxRank,
	float inMinDistance,
	IList<List<int>> outGraph,
	IList<List<float>> outDistances
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<AvlNet.Point2D>Input points.
inMaxRankint<1, INF>8Maximum connections going out of one point. Default value: 8.
inMinDistancefloat<0.0f, INF>0.0fMinimum distance between adjacent point in the graph. Default value: 0.0f.
outGraphSystem.Collections.Generic.IList<System.Collections.Generic.List<int>>Graph of points (adjacency list).
outDistancesSystem.Collections.Generic.IList<System.Collections.Generic.List<float>>Distances between adjacent points in the graph.

Errors

List of possible exceptions:

Error type Description
DomainError Minimum distance is greater than maximum distance in CreatePointGraph.

Function Overrides

See also