Method CreateStarPolygon
CreateStarPolygon(float, int, float)
Creates a Spline in in the shape of a star with a specified number of corners.
Declaration
public static Spline CreateStarPolygon(float edgeSize, int corners, float concavity)
Parameters
Type | Name | Description |
---|---|---|
float | edgeSize | The distance between the corners of the star. |
int | corners | The amount of corners the star has. |
float | concavity | The sharpness of the corners. The range is 0 through 1. |
Returns
Type | Description |
---|---|
Spline | A new Spline. |