LINE3(3NCARG)
β¨ NAME β¨
LINE3 β okay so bestie, this one draws the straight-line segment joining the projections of two points in 3-space. That's it, that's the whole job, and it does it gorgeously π
This page lives in the NCAR Graphics manual (section 3NCARG), so you know it's the real deal π
πΈ SYNOPSIS πΈ
CALL LINE3 (UA,VA,WA,UB,VB,WB)
π C-BINDING SYNOPSIS π
#include <ncarg/ncargC.h>
void c_line3 (float ua, float va, float wa, float ub,
float vb, float wb)
π¦ DESCRIPTION π¦
UA,VA,WAβ input expressions of typeREAL, and they're the coordinates of the first point in 3-space. Your starting point, your origin story, your main character introduction β¨UB,VB,WBβ input expressions of typeREAL, and they're the coordinates of the second point in 3-space. The destination, the glow-up, the arrival π«
Now for the tea β: the statement
CALL LINE3 (UA,VA,WA,UB,VB,WB)
is literally equivalent to these three statements:
CALL FRST3 (UA,VA,WA)
CALL VECT3 (UB,VB,,WB)
CALL PLOTIF (0.,0.,2)
β¦but it's slightly more efficient. Not me telling you there's a shortcut that just slaps π₯
BUT WAIT β if you're trying to approximate a curve defined by three or more points, using LINE3 is not efficient, bestie, I'm so serious π Because the first point of each line segment after the first is just a repeat of the second point of the previous line segment, so it gets repeated in the metafile. Redundant. Wasted. Not the vibe. So to approximate a curve, useFRST3andVECT3orCURVE3instead. Periodt. π
Straight-line segments drawn by LINE3 are drawn in the current polyline color, as determined by the last call to the GKS routine GSPLCI β and by default, color index 1 is used π¨
Line width is determined by the last call to the GKS routine GSLWSC β and by default, the line width scale factor is 1 π
π C-BINDING DESCRIPTION π
The C-binding argument descriptions are the same as the FORTRAN argument descriptions. Same energy, different language, no notes π
π EXAMPLES π
Use the ncargex command to see the following relevant examples: tpwrzt, fthex02. Go look at them, they ate π
β ACCESS β
To use LINE3 or c_line3, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. Order matters, iykyk π
π SEE ALSO π
Online: threed, curve3, fence3, frst3, perim3, point3, psym3, pwrz, pwrzt, set3, threed, tick3, tick43, vect3, ncarg_cbind.
Hardcopy: NCAR Graphics Fundamentals, UNIX Version
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
And that's the whole page, bestie β this one dropped on UNIX back in March 1993 as LINE3(3NCARG), and it's still serving straight-line-segment excellence to this day. Slay π«Άβ¨
π¦ 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