Math::PlanePath::SierpinskiArrowheadSkewed -- self-similar triangular path traversal
use Math::PlanePath::SierpinskiArrowheadSkewed; my $path = Math::PlanePath::SierpinskiArrowheadSkewed->new; my ($x, $y) = $path->n_to_xy (123);
Old ...
$path = Math::PlanePath::SierpinskiArrowheadSkewed->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.
$n
$n < 0
Math::PlanePath, Math::PlanePath::KochCurve
To install Math::PlanePath, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::PlanePath
CPAN shell
perl -MCPAN -e shell install Math::PlanePath
For more information on module installation, please visit the detailed CPAN module installation guide.