DOTS Geometry
 
Loading...
Searching...
No Matches
Polygon2DGeneration Class Reference

Static Public Member Functions

static NativePolygon2D Regular (Allocator allocator, Vector2 center, float size, int points)
 Creates a regular polygon with the given size and number of points.
 
static NativePolygon2D Star (Allocator allocator, int spikes, Vector2 center, float innerRadius, float outerRadius)
 Creates a star polygon with a given number of spikes and an inner and outer radius.
 

Member Function Documentation

◆ Regular()

static NativePolygon2D Regular ( Allocator allocator,
Vector2 center,
float size,
int points )
static

Creates a regular polygon with the given size and number of points.

Parameters
allocator
center
size
points
Returns

◆ Star()

static NativePolygon2D Star ( Allocator allocator,
int spikes,
Vector2 center,
float innerRadius,
float outerRadius )
static

Creates a star polygon with a given number of spikes and an inner and outer radius.

Parameters
allocator
spikes
center
innerRadius
outerRadius
Returns