Method CreatePolygon
CreatePolygon(float, int)
Creates a Spline in the shape of a polygon with a specific number of sides.
Declaration
public static Spline CreatePolygon(float edgeSize, int sides)
Parameters
Type | Name | Description |
---|---|---|
float | edgeSize | The size of the polygon's edges. |
int | sides | The amount of sides the polygon has. |
Returns
Type | Description |
---|---|
Spline | A new Spline. |