round method

Vector3 round()

The components of this vector are rounded to the nearest integer value.

Implementation

Vector3 round() {
  x = x.round().toDouble();
  y = y.round().toDouble();
  z = z.round().toDouble();
  return this;
}