NGRITD(3NCARG)
π« NGRITD β bestie, we're rotating a point π«
okay so this is a page from the NCAR GRAPHICS manuals, section 3NCARG, and it's all about NGRITD. like, the name says it: N-G-RIT-D, we're out here spinning a point around an axis by some angle. and honestly? slay. π
β¨ NAME β¨
NGRITD β give it the coordinates of a point and it performs a rotation of that point about a specified axis by a specified angle. that's it, that's the whole vibe. π
β¨ SYNOPSIS β¨
CALL NGRITD (IAXS,ANGL,UCRD,VCRD,WCRD)
πΈ C-BINDING SYNOPSIS πΈ
#include <ncarg/ncargC.h>
void c_ngritd(int iaxs, float angl, float *ucrd, float *ycrd,
float *wcrd)
(no fr, that's exactly how it's written, ycrd and all β we do not editorialize, we transcribe. π«Ά)
β¨ DESCRIPTION β¨
IAXSβ an input expression of typeINTEGER. this is the axis you're rotating around.1means the U axis,2means the V axis, and3means the W axis. pick your fighter. πANGLβ an input expression of typeREAL. the magnitude, in degrees, of the rotation angle. it's giving "how much do we spin". π₯UCRDβ an input/output variable of typeREAL. the U coordinate of the point being rotated. (input and output bestie, she comes back different.) β¨VCRDβ an input/output variable of typeREAL. the V coordinate of the point being rotated. πWCRDβ an input/output variable of typeREAL. the W coordinate of the point being rotated. π
π C-BINDING DESCRIPTION π
the C binding argument descriptions are the same as the FORTRAN argument descriptions. literally identical. no notes. π
β¨ USAGE β¨
so who's actually using this? NGGCOG and NGGSOG, that's who. this routine is used by them 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. π iconic behavior tbh.
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. π
and here's the cheat sheet, memorize it, it's on the test:
- when
IAXS = 1,ANGL = 90carries the positive V axis into the positive W axis - when
IAXS = 2,ANGL = 90carries the positive W axis into the positive U axis - when
IAXS = 3,ANGL = 90carries the positive U axis into the positive V axis
(cyclic vibes. the axes are passing the aux around. π«)
β¨ EXAMPLES β¨
use the ncargex command to see the following relevant example: cpex10.
go look at it. it's right there. π
β¨ ACCESS β¨
to use NGRITD or c_ngritd, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. the order matters bestie, don't be chaotic. π
β¨ MESSAGES β¨
None.
like literally none. silence. the routine is unproblematic and says nothing. π€β¨
β¨ SEE ALSO β¨
Online: nggcog(3NCARG), nggsog(3NCARG).
β¨ COPYRIGHT β¨
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
β οΈ okay one tiny seriousness moment: the license agreement thing is real and it governs how you use this software, so read it, don't just vibe past it. π«Ά
and that's the whole page, bestie!! πΈπ¦ this was the UNIX rendering of the NGRITD(3NCARG) manual page, dated March 1993. yes, 1993. she's vintage, she's legacy, she's still rotating points and she ate. π β¨π
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms