Finding Skewed Lattice Rectangles: The Geometry of a2+b2=c2+d2.