roundToZero method

  1. @override
Vector3 roundToZero()
override

Implementation

@override
Vector3 roundToZero() {
  x = (x < 0) ? x.ceilToDouble() : x.floorToDouble();
  y = (y < 0) ? y.ceilToDouble() : y.floorToDouble();
  z = (z < 0) ? z.ceilToDouble() : z.floorToDouble();

  return this;
}