I\'m working on a 2D Graphics Engine. When I rotate images by 90.0f degrees following code works fine but if the angle is more than 90.0f or is a negative angle I get write