Subject: | Initial X/Y values of 0 not possible |
It seems to be impossible to start a Hilbert curve on coordinates (0,0)
using Math::Curve::Hilbert - passing raw "0" values for X and Y causes
them to be overridden because of the use of ||= later in the code, and
passing references to scalars containing zero (as the docs indicate is
required) causes dereferencing problems because the values are
explicitly turned into references later in the code without first
checking if they are already references. A simple defined test instead
of the ||= would probably solve the problem of passing in actual values,
and would probably be the simplest course of action.