fromArray method

Vector2 fromArray(
  1. dynamic array, [
  2. int offset = 0
])

Implementation

Vector2 fromArray(array, [int offset = 0]) {
  x = array[offset];
  y = array[offset + 1];

  return this;
}