[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Waldhäuser Str. 64, D-72076 Tübingen, Germany
[Uni logo]


ONE_RAY Source code in one_ray.pro

ONE_RAY

Name
       ONE_RAY
Purpose
       Draw a line with a specified starting point, length, and  angle
Calling Sequence
       one_ray, xcen, ycen, len, angle, terminus, [  THICK=, COLOR =, /NODRAW ]
Input Parameters
       xcen, ycen = starting point in device coordinates, floating point
                       scalars
       len        = length in pixels, device coordinates
       angle      = angle in degrees counterclockwise from +X direction
Output Parameters
       terminus = two-element vector giving ending point of ray in device
               coordinates
Keyword Parameters
       thick    usual IDL meaning, default = 1.0
       color    usual IDL meaning, default = !P.COLOR
       nodraw   if non-zero, the ray is not actually drawn, but the terminus
               is still calculated
Example
       Draw a double thickness line of length 32 pixels from (256,256)
       45 degrees counterclockwise from the X axis
       IDL> one_ray, 256, 256, 32, 45 ,term, THICK = 2
 PROCEDURE:  straightforward matrix arithmetic
Revision History
    Written by R. S. Hill, Hughes STX Corp., 20-May-1992.
    Modified to work correctly for COLOR=0  J.Wm.Parker  HITC   1995 May 25
       Converted to IDL V5.0   W. Landsman   September 1997

Last modified by pro2html on 2001 April 26 at 03:14 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically