flipping 2d components in java

Posted by aniket on Stack Overflow See other posts from Stack Overflow or by aniket
Published on 2011-11-20T01:42:50Z Indexed on 2011/11/20 1:50 UTC
Read the original article Hit count: 187

Filed under:

i am trying to flip a pentahex (5 hexagons joined at their sides). Is it possible to do so in Java? I mean suppose 2 of the 3 hexagons are in one quadrant can I change their quadrant? It is similar to what we do to flip images in Paint. The same utility I am trying to perform in Java. I have heard about Affine transform wherein it makes use of a bit called TYPE_FLIP, but I am not sure how to use it. Any small example would be of great help. Note: I do not want to flip images, but actual 2D objects.

© Stack Overflow or respective owner

Related posts about java