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