---
title: getPolygonVertices
status: published
category: primitives
group: Function
author: api
date: 06/23/2023
order: 28
---<Small>Public Function</Small>




##### Parameters


<ParametersTable>

<ParametersTableRow>
<ParametersTableName>

`width`

</ParametersTableName>
<ParametersTableDescription>

```ts
number
```



</ParametersTableDescription>
</ParametersTableRow>
<ParametersTableRow>
<ParametersTableName>

`height`

</ParametersTableName>
<ParametersTableDescription>

```ts
number
```



</ParametersTableDescription>
</ParametersTableRow>
<ParametersTableRow>
<ParametersTableName>

`sides`

</ParametersTableName>
<ParametersTableDescription>

```ts
number
```



</ParametersTableDescription>
</ParametersTableRow>
</ParametersTable>

##### Returns


```ts
Vec2d[]
```

##### References

[Vec2d](/gen/primitives/Vec2d-class)

