<!-- 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; [bound2d](./rc-js-util.vec2.bound2d.md)

## Vec2.bound2d() method

If this point is outside of the range, set that dimension to the extrema of the range.

**Signature:**

```typescript
bound2d(_range: IReadonlyRange2d<TTypedArray>): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

\_range


</td><td>

[IReadonlyRange2d](./rc-js-util.ireadonlyrange2d.md)<!-- -->&lt;[TTypedArray](./rc-js-util.ttypedarray.md)<!-- -->&gt;


</td><td>

The range to be bound to, inclusive.


</td></tr>
</tbody></table>
**Returns:**

void

