ImageD11.rebin2d | index /sware/exp/fable/standalone/redhate4-a64/lib/python2.5/site-packages/ImageD11/rebin2d.py

`Function for rebinning in two dimensions
Expected to be very slow and then re-implemented in C once it works, correctly`

Classes
`` |  | polygon
class polygon
`` | `Represents a 2D polygon`
| Methods defined here: __init__(self, xy) `xy are a list of pairs of xy points (directed)` area(self) `http://mathworld.wolfram.com/PolygonArea.html # sign of area tells us if it is convex or concave` walkaroundintegervertices(self) `Generate a list of points along the edges of integers`

Functions
`` |  | ceil(...) `ceil(x) Return the ceiling of x as a float. This is the smallest integral value >= x.` distance(p1, p2) floor(...) `floor(x) Return the floor of x as a float. This is the largest integral value <= x.` main() sqrt(...) `sqrt(x) Return the square root of x.` testpolywalkandplot(vertices)