utilities
- Description:
- Utilities for the predefined module.
- Source:
Methods
(static) randomPoints(x, lim) → {Array.<module:shared.Point2D>}
- Description:
- Generates an array of random points, with the first one always being the origin (0,0).
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
x |
number |
5
|
The length of the points array to return. |
lim |
number |
256
|
The points will vary within +-(lim/2) |
Returns:
Array of random points, starting with
(0,0).
- Type
- Array.<module:shared.Point2D>