round method
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;
}
The components of this vector are rounded to the nearest integer value.
Vector3 round() {
x = x.round().toDouble();
y = y.round().toDouble();
z = z.round().toDouble();
return this;
}