roundToZero method
The components of this vector are rounded towards zero (up if negative, down if positive) to an integer value.
Implementation
Vector3 roundToZero() {
x = (x < 0) ? x.ceil().toDouble() : x.floor().toDouble();
y = (y < 0) ? y.ceil().toDouble() : y.floor().toDouble();
z = (z < 0) ? z.ceil().toDouble() : z.floor().toDouble();
return this;
}