Truncate (remove fractional part) the coordinates of a vector See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc
target vector
vector truncated
vecTrunc([0.1, 1.5]); // returns [0, 1]vecTrunc([-0.1, -1.5]); // returns [-0, -1] Copy
vecTrunc([0.1, 1.5]); // returns [0, 1]vecTrunc([-0.1, -1.5]); // returns [-0, -1]
Truncate (remove fractional part) the coordinates of a vector See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc