floor method

Vector3 floor()

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

Implementation

Vector3 floor() {
  x = x.floor().toDouble();
  y = y.floor().toDouble();
  z = z.floor().toDouble();

  return this;
}