PlanePath/Base/NSEW.pm

filter: Statementstmt 100% 43 / 43 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 14 / 14 Podpod n/a totaltotal 100% 57 / 57 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PlanePath/DiamondArms.pm ↑ Summary
1 # Copyright 2014, 2015, 2016, 2017, 2018, 2019, 2020 Kevin Ryde
2  
3 # This file is part of Math-PlanePath.
4 #
5 # Math-PlanePath is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; either version 3, or (at your option) any later
8 # version.
9 #
10 # Math-PlanePath is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 # for more details.
14 #
15 # You should have received a copy of the GNU General Public License along
16 # with Math-PlanePath. If not, see <http://www.gnu.org/licenses/>.
17  
18  
19 package Math::PlanePath::Base::NSEW;
20 34 ▶use 5.004;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 34 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 34 ▶use vars '$VERSION';
Subroutine BEGIN: called CC=1 SCAR=0.0
24 34 $VERSION = 128;
25  
26 34 ▶use constant dx_minimum => -1; # NSEW straight only
Subroutine BEGIN: called CC=1 SCAR=0.0
27 34 ▶use constant dx_maximum => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 34 ▶use constant dy_minimum => -1;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 34 ▶use constant dy_maximum => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
30  
31 34 ▶use constant dsumxy_minimum => -1; # NSEW straight only
Subroutine BEGIN: called CC=1 SCAR=0.0
32 34 ▶use constant dsumxy_maximum => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
33 34 ▶use constant ddiffxy_minimum => -1;
Subroutine BEGIN: called CC=1 SCAR=0.0
34 34 ▶use constant ddiffxy_maximum => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
35 34 ▶use constant dir_maximum_dxdy => (0,-1); # South
Subroutine BEGIN: called CC=1 SCAR=0.0
36  
37 34 ▶use constant 1.02;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 34 use constant _UNDOCUMENTED__dxdy_list => (1,0, # E
39 0,1, # N
40 -1,0, # W
41 34 ▶ 0,-1); # S
Subroutine BEGIN: called CC=1 SCAR=0.0
42  
43 34 1;
44 __END__
« PlanePath/DiamondArms.pm ↑ Summary