fromInts static method

Vector2 fromInts(
  1. int x,
  2. int y
)

Create a Vector2 with ints as input

Implementation

static Vector2 fromInts(int x, int y) => Vector2(x.toDouble(), y.toDouble());