Changeset 231 for trunk/SRC/ToBeReviewed/PLOTS/DIVERS/projsegment.pro
- Timestamp:
- 03/19/07 18:15:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/projsegment.pro
r163 r231 1 ;------------------------------------------------------------2 ;------------------------------------------------------------3 ;------------------------------------------------------------4 1 ;+ 5 2 ; 6 3 ; @file_comments 7 ; project linearly a segment, a vector whose boundaries are [a,b] on 4 ; project linearly a segment, a vector whose boundaries are [a,b] on 8 5 ; a vector whose boundaries are [c,d] 9 6 ; … … 14 11 ; A vector whose the first element must be the smallest one and the last must be the biggest one. 15 12 ; 16 ; @param BORNES 13 ; @param BORNES 17 14 ; New boundaries of the vector. 18 15 ; 19 16 ; @keyword MP 20 ; Activate this keyword to the function send back this a vector of 2 21 ; elements which are the m and p of the linear projection y=mx+p used 17 ; Activate this keyword to the function send back this a vector of 2 18 ; elements which are the m and p of the linear projection y=mx+p used 22 19 ; to pass from the [a,b] segment to the [c,d] segment. 23 20 ; 24 ; @returns 21 ; @returns 25 22 ; A vector whose new boundaries are specified by BORNES. 26 23 ; 27 24 ; @examples 28 ; 29 ; IDL> a=indgen(9) 30 ; IDL> print, a 25 ; 26 ; IDL> a=indgen(9) 27 ; IDL> print, a 31 28 ; 0 1 2 3 4 5 6 7 8 32 ; IDL> print, projsegment(a,[0,80]) 29 ; IDL> print, projsegment(a,[0,80]) 33 30 ; 0 10 20 30 40 50 60 70 80 34 ; IDL> print, projsegment(a,[0,-80]) 31 ; IDL> print, projsegment(a,[0,-80]) 35 32 ; 0 -10 -20 -30 -40 -50 -60 -70 -80 36 ; IDL> print, projsegment(a,[-80,0]) 33 ; IDL> print, projsegment(a,[-80,0]) 37 34 ; -80 -70 -60 -50 -40 -30 -20 -10 0 38 35 ; … … 45 42 ; 46 43 ;- 47 ;------------------------------------------------------------ 48 ;------------------------------------------------------------ 49 ;------------------------------------------------------------ 44 ; 50 45 FUNCTION projsegment, vecteur, bornes, MP = mp 51 ;--------------------------------------------------------------52 46 ; 53 47 compile_opt idl2, strictarrsubs
Note: See TracChangeset
for help on using the changeset viewer.