set method
Sets all components at once.
Values are converted using num.toDouble.
Implementation
Vector2D set(num x, num y) {
this.x = x.toDouble();
this.y = y.toDouble();
return this;
}
Sets all components at once.
Values are converted using num.toDouble.
Vector2D set(num x, num y) {
this.x = x.toDouble();
this.y = y.toDouble();
return this;
}