setLength method

  1. @override
Vector2 setLength(
  1. double length
)
override

Implementation

@override
Vector2 setLength(double length) {
  return normalize().scale(length);
}