Previous SAXO Documentation Assistant: Overview Next

ToBeReviewed/PLOTS/DIVERS/

projsegment.pro

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

projsegment Calculation

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

Return value

A vector whose new boundaries are specified by BORNES.

Parameters

vecteur        type: vector

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 163 2006-08-29 12:59:46Z navarro $

History

Sebastien Masson (smasson@lodyc.jussieu.fr) 24/6/1999

 


  Produced by IDLdoc 2.0.