Rev 3307 | Rev 4349 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | !if $wims_read_parm!=slib_header |
2 | !goto proc |
||
3 | !endif |
||
4158 | bpr | 4 | |
20 | reyssat | 5 | slib_author=Fabrice Guerimand |
4158 | bpr | 6 | |
20 | reyssat | 7 | !exit |
8 | |||
9 | |||
10 | :proc |
||
11 | slib_input=$wims_read_parm |
||
12 | |||
13 | !distribute items $slib_input into a,b,mx,my,Mx,My |
||
14 | slib_out=$slib_input |
||
15 | |||
16 | liste=$empty |
||
17 | tmp=$[$mx*($a)+($b)] |
||
18 | !ifval $tmp<=$My and $tmp>=$my |
||
19 | liste=!append line $mx,$tmp to $liste |
||
20 | !endif |
||
21 | tmp=$[$Mx*($a)+($b)] |
||
22 | !ifval $tmp<=$My and $tmp>=$my |
||
23 | liste=!append line $Mx,$tmp to $liste |
||
24 | !endif |
||
25 | tmp=!linecnt $liste |
||
26 | !if $tmp=2 |
||
27 | !goto end |
||
28 | !endif |
||
29 | |||
30 | tmp=$[($my-($b))/($a)] |
||
31 | !ifval $tmp<=$Mx and $tmp>=$mx |
||
32 | liste=!append line $tmp,$my to $liste |
||
33 | !endif |
||
34 | |||
35 | tmp=$[($My-($b))/($a)] |
||
36 | !ifval $tmp<=$Mx and $tmp>=$mx |
||
37 | liste=!append line $tmp,$My to $liste |
||
38 | !endif |
||
39 | |||
40 | :end |
||
41 | |||
42 | |||
43 | tmp=!linecnt $liste |
||
44 | !if $tmp<2 |
||
45 | slib_out=error |
||
46 | !else |
||
47 | slib_out=!line 1 to 2 of $liste |
||
48 | !endif |