fromValues function
Creates a new vec2 initialized with the given values
@param {Number} x X component @param {Number} y Y component @returns {vec2} a new 2D vector
Implementation
List<double> fromValues(double x, double y) {
final out = <double>[];
out[0] = x;
out[1] = y;
return out;
}