<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

ToBeReviewed/PLOTS/DIVERS/

projsegment.pro

project linearly a segment, a vector whose boundaries are [a,b] on a vector whose boundaries are [c,d]

topprojsegment calculation

result = projsegment(vecteur, bornes, MP=MP)

Return value

A vector whose new boudaries are specified by BORNES.

Parameters

vecteur       

A vector whose the first element must be the smallest one and the last must be the biggest one.

bornes       

New boundaries of the vector.

Keywords

MP       

Activate this keyword to the function send back this a vector of 2 elements which are the m and p of the linear projection y=mx+p used to pass from the [a,b] segment to the [c,d] segment.

Examples

IDL> a=indgen(9) IDL> print, a 0 1 2 3 4 5 6 7 8 IDL> print, projsegment(a,[0,80]) 0 10 20 30 40 50 60 70 80 IDL> print, projsegment(a,[0,-80]) 0 -10 -20 -30 -40 -50 -60 -70 -80 IDL> print, projsegment(a,[-80,0]) -80 -70 -60 -50 -40 -30 -20 -10 0

Version history

Version

$Id: projsegment.pro 142 2006-07-21 12:47:49Z navarro $

History

Produced by IDLdoc 2.0.