useful release of Math::Curve::Hilbert

TeeJay on 2004-02-06T11:20:21

The new version of Math::Curve::Hilbert (0.04) is now object oriented and actually useful.

It allows you to :

    get a point on the curve from coordinates
    get coordinates from a point on the curve
    get a range of points from 2 sets of coordinates representing an area.
This makes it suitable for flattening 2-d data to 1 dimension and possibly some neighbour finding and graphical stuff.

It also apparently lets you solve the travelling salesman problem in a non-optimal but in O(n) which is quite good. Doing so is left as an exersize for the reader.