js-util

Home > rc-js-util > Vec2 > bound2d

Vec2.bound2d() method

If this point is outside of the range, set that dimension to the extrema of the range.

Signature:

bound2d(_range: IReadonlyRange2d<TTypedArray>): void;

Parameters

Parameter Type Description
_range IReadonlyRange2d<TTypedArray> The range to be bound to, inclusive.

Returns:

void