NAME
App::MathImage::NumSeq::PlanePathDelta -- sequences of changes in PlanePath X,Y points
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 and directions from a Math::PlanePath
module in the form of a NumSeq sequence. The delta 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 direction is for point N=i to N=i+1 on the path, and starting from the usual path n_start()
. Or for paths with an "arms" then from N=i to N=i+arms, which follows the N=i arm.
"Dir4" is designed for use with paths which make a unit step in one of those four directions, such as the SquareSpiral. It can be used on paths taking steps a bit away from those cardinal directions, except that currently it's unspecified what is returned for points North-East and similar exactly half way between the cardinal directions.
FUNCTIONS
$seq = App::MathImage::NumSeq::PlanePathDelta->new (key=>value,...)
-
Create and return a new sequence object.