should clamp1ms ‣
{
const expected = [1, 0];
testV2WithAndWithoutDest((a, newDst) => {
return vec2.clamp(a, 0, 1, newDst);
}, expected, [2, -1]);
}
{
const expected = [-10, 5];
testV2WithAndWithoutDest((a, newDst) => {
return vec2.clamp(a, -10, 5, newDst);
}, expected, [-22, 50]);
}