NAME
App::MathImage::PlanePath::Flowsnake -- self-similar path traversal
SYNOPSIS
use App::MathImage::PlanePath::Flowsnake;
my $path = App::MathImage::PlanePath::Flowsnake->new;
my ($x, $y) = $path->n_to_xy (123);
DESCRIPTION
This path ...
FUNCTIONS
$path = App::MathImage::PlanePath::Flowsnake->new ()
-
Create and return a new path object.
($x,$y) = $path->n_to_xy ($n)
-
Return the X,Y coordinates of point number
$n
on the path. Points begin at 0 and if$n < 0
then the return is an empty list.Fractional positions give an X,Y position along a straight line between the integer positions. Integer positions are always just 1 apart either horizontally or vertically, so the effect is that the fraction part appears either added to or subtracted from X or Y.
$n = $path->xy_to_n ($x,$y)
-
Return an integer point number for coordinates
$x,$y
. Each integer N is considered the centre of a unit square an$x,$y
within that square returns N.
SEE ALSO
Math::PlanePath, Math::PlanePath::HilbertCurve Math::PlanePath::PeanoCurve Math::PlanePath::ZOrderCurve
Guiseppe Peano, "Sur une courbe, qui remplit toute une aire plane", Mathematische Annalen, volume 36, number 1, 1890, p157-160
DOI 10.1007/BF01199438
http://www.springerlink.com/content/w232301n53960133/
HOME PAGE
http://user42.tuxfamily.org/math-image/index.html
LICENSE
Math-Image is Copyright 2010, 2011 Kevin Ryde
Math-Image is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Math-Image is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Math-Image. If not, see <http://www.gnu.org/licenses/>.