You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Basics » 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, int? inSeed, IList<AvlNet.Point2D> outArray )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inLength | int | <1, +INF> | 10 | Length of output array. Default value: 10. | |
inBox | AvlNet.Box | Bounding box of generated point. | |||
inStep | float | <0.0001f, INF> | 1.0f | Minimal difference between two generated values on each coordinate. Default value: 1.0f. | |
inSeed | int? | Random seed. Default value: atl::NIL. | |||
outArray | System.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. |