NAME
App::MathImage::NumSeq::PlanePathDelta -- sequence of changes in PlanePath X,Y coordinates
SYNOPSIS
use App::MathImage::NumSeq::PlanePathDelta;
my $seq = App::MathImage::NumSeq::PlanePathDelta->new (planepath => 'SquareSpiral',
delta_type => 'dX');
my ($i, $value) = $seq->next;
DESCRIPTION
This is a tie-in to present coordinate changes from a Math::PlanePath
module in the form of a NumSeq sequence.
The delta_type
choices are
"dX" change in X coordinate
"dY" change in Y coordinate
"Dir4" direction 0=East, 1=North, 2=West, 3=South
In each case the value at i in the sequence is the change from N=i to N=i+1 on the path, or from N=i to N=i+arms for paths with multiple "arms", thus following a particular arm. i values start from the usual path n_start()
.
"Dir4" is a fraction when a delta is in between the cardinal directions. For example North-West dX=-1,dY=+1 would be 1.5.
FUNCTIONS
$seq = App::MathImage::NumSeq::PlanePathDelta->new (key=>value,...)
-
Create and return a new sequence object.