Table of Contents

Method Sample

Namespace
GrindFest.Generation.Common
Assembly
GrindFest.dll

Sample(Rect, float, SeededRandom, IList<Vector2>, IList<(Vector2 center, float radius)>, int)

public static List<Vector2> Sample(Rect bounds, float minDistance, SeededRandom rng, IList<Vector2> polygonMask = null, IList<(Vector2 center, float radius)> exclusions = null, int kAttempts = 30)

Parameters

bounds Rect
minDistance float
rng SeededRandom
polygonMask IList<Vector2>
exclusions IList<(Vector2 center, float radius)>
kAttempts int

Returns

List<Vector2>