Skip to main content
Version: 20 Mar 2024

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

TypeNameDescription
NativeArray< Vector2 >points
Allocatorallocator
ref NativeArray< Vector2 >convexHullOut

Returns:


void GrahamScan

public static void GrahamScan(
NativeArray< Vector2 > points,
Allocator allocator,
ref NativeArray< Vector2 > convexHullOut
)

Parameters

TypeNameDescription
NativeArray< Vector2 >points
Allocatorallocator
ref NativeArray< Vector2 >convexHullOut