You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Basics » AVL.CreateRandomPointArray

AVL.CreateRandomPointArray

Creates array of random points inside given box.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreateRandomPointArray
(
	int inLength,
	AvlNet.Box inBox,
	float inStep,
	IList<AvlNet.Point2D> outArray
)

Parameters

Name Type Range Default Description
inLengthint<1, +INF>10Length of output array. Default value: 10.
inBoxAvlNet.BoxBounding box of generated point.
inStepfloat<0.0001f, INF>1.0fMinimal difference between two generated values on each coordinate. Default value: 1.0f.
outArraySystem.Collections.Generic.IList<AvlNet.Point2D>

Errors

List of possible exceptions:

Error type Description
DomainError Value of inStep is greater than height of box in CreateRandomPointArray.
DomainError Value of inStep is greater than width of box in CreateRandomPointArray.

Function Overrides

See also