Sounds like you're trying to see if a point is inside a rotated rectangle. That's simpler:
if (rectangle.getLocalBounds().contains(rectangle.getInverseTransform().transformPoint(point)))
pointIsInsideRectangle = true;
Sounds like you're trying to see if a point is inside a rotated rectangle. That's simpler:
if (rectangle.getLocalBounds().contains(rectangle.getInverseTransform().transformPoint(point)))
pointIsInsideRectangle = true;
@Hapax, Dude thanks so much. This did it exactly. I was looking for something similar to JavaScript's ctx.isPointInPath() and this did it perfectly. My other method was image getPixel() but I had to rotate the png rectangle image ahead of time which was very cumbersome. Thanks again!