new util methods to check if a vector is in a rotated rectangle
make rendering of an image source easier