Ray Casting Algorithm To Test Polygon In C