size method

Vector2 size()

returns width and height as Vector2.

Implementation

Vector2 size() {
  return Vector2(width.toDouble(), height.toDouble());
}