@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
20 lines • 718 B
TypeScript
import type { IRandom } from "@thi.ng/random";
import type { Vec } from "@thi.ng/vectors";
import type { IShape } from "./api.js";
/**
* Produces `num` random points for which {@link pointInside} succeeds for the
* given `shape`. Writes results into `out` array (or creates a new one).
*
* @remarks
* Samples are only created with the shapes bounding box and are chosen using
* optionally provided `rnd`
* [`IRandom`](https://docs.thi.ng/umbrella/random/interfaces/IRandom.html)
* instance.
*
* @param shape
* @param num
* @param rnd
* @param out
*/
export declare const scatter: (shape: IShape, num: number, rnd?: IRandom, out?: Vec[]) => Vec<number>[] | undefined;
//# sourceMappingURL=scatter.d.ts.map