Package popinjay
Class Piece
- java.lang.Object
-
- popinjay.Piece
-
- All Implemented Interfaces:
java.lang.Iterable<Point>
public class Piece extends java.lang.Object implements java.lang.Iterable<Point>
A Piece represents a puzzle piece, which is a Shape that has been rotated, flipped, and translated to some position on a Board by an affine transformation. Each Piece also has a unique index used to identify it.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<Point>
iterator()
Return an Iterable for the points of the piece, which are the transformed points of its shape.
-