More vector functions
Remove test code
Simplify the vector generation

First step on sharing the code, later we'll move it to the
rasterizer base class itself for later use it on other
rasterizers that might need it