Vector constructor

Vector(
  1. num x,
  2. num y
)

Implementation

Vector(num x, num y)
    : x = x.toDouble(),
      y = y.toDouble();