ConvexHullGenerator
Public Methods
void Giftwrap
Computes a convex hull using the Gift Wrap method.
public static void Giftwrap(
NativeArray< Vector2 > points,
Allocator allocator,
ref NativeArray< Vector2 > convexHullOut
)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray< Vector2 > | points | |
| Allocator | allocator | |
| ref NativeArray< Vector2 > | convexHullOut |
Returns:
void GrahamScan
public static void GrahamScan(
NativeArray< Vector2 > points,
Allocator allocator,
ref NativeArray< Vector2 > convexHullOut
)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray< Vector2 > | points | |
| Allocator | allocator | |
| ref NativeArray< Vector2 > | convexHullOut |