Limit the magnitude of this vector to the value used for the max parameter. val v = Vector2D(10, 20); // v has components 10.0, 20.0 v.limit(5); // v's components are set to // 2.2271771, 4.4543543
val v = Vector2D(10, 20); // v has components 10.0, 20.0 v.limit(5); // v's components are set to // 2.2271771, 4.4543543