NGRITD(3NCARG) | NCAR GRAPHICS | NGRITD(3NCARG) |
NGRITD - Given the coordinates of a point, this routine performs a rotation of that point about a specified axis by a specified angle.
CALL NGRITD (IAXS,ANGL,UCRD,VCRD,WCRD)
#include <ncarg/ncargC.h>
void c_ngritd(int iaxs, float angl, float *ucrd, float *ycrd,
float *wcrd)
The C binding argument descriptions are the same as the FORTRAN argument descriptions.
This routine is used by NGGCOG and NGGSOG to effect the rotations that are used to generate an object of a specified shape at a specified point on the surface of the globe.
NGRITD assumes that the UVW coordinate system is right-handed. Positive values of ANGL give counter-clockwise rotations and negative values of ANGL give clockwise rotations. (When IAXS = 1, ANGL = 90 carries the positive V axis into the positive W axis; when IAXS = 2, ANGL = 90 carries the positive W axis into the positive U axis; when IAXS = 3, ANGL = 90 carries the positive U axis into the positive V axis.)
Use the ncargex command to see the following relevant example: cpex10.
To use NGRITD or c_ngritd, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.
None.
Online: nggcog(3NCARG), nggsog(3NCARG).
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
March 1993 | UNIX |