<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [Vec2](./rc-js-util.vec2.md) &gt; [getCtor](./rc-js-util.vec2.getctor.md)

## Vec2.getCtor() method

**Signature:**

```typescript
static getCtor<TCtor extends TTypedArrayCtor>(ctor: TCtor): IVec2Ctor<InstanceType<TCtor>>;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

ctor


</td><td>

TCtor


</td><td>


</td></tr>
</tbody></table>
**Returns:**

[IVec2Ctor](./rc-js-util.ivec2ctor.md)<!-- -->&lt;InstanceType&lt;TCtor&gt;&gt;

