TDLINE(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

✨ TDLINE πŸ’« β€” it's in the NCAR GRAPHICS manual (3NCARG), bestie πŸ’–

okay so real talk, this is a page from the NCAR GRAPHICS section of the manual, and it's genuinely one of the cutest little routines in the whole TD pack. no cap. let's get into it 🫢


🌈 NAME 🌈

TDLINE β€” you hand it the coords of two points floating around in 3-space, and it draws the projection of the line joining them. that's it. that's the whole job. and it ate. πŸ’…


✨ SYNOPSIS ✨

CALL TDLINE (UCP1, VCP1, WCP1, UCP2, VCP2, WCP2)

like, six args, no drama, she's lowkey iconic for it πŸŽ€


πŸ¦‹ C-BINDING SYNOPSIS πŸ¦‹

so if you're a C girlie (or a C bestie), you gotta pull in the header first:

#include <ncarg/ncargC.h>

and then the signature is giving:

void c_tdline(float ucp1, float vcp1, float wcp1, float ucp2, float vcp2, float wcp2)

same energy, different syntax, we love a bilingual queen πŸ’œ


🌸 DESCRIPTION 🌸

the arguments of TDLINE are, in order, bestie:

  • UCP1, VCP1, and WCP1 β€” (input expressions of type REAL) β€” the coordinates of a point in 3-space. one single point. just vibing out there in the third dimension. 🌌
  • UCP2, VCP2, and WCP2 β€” (input expressions of type REAL) β€” the coordinates of another point in 3-space. a second point. a whole other vibe. and TDLINE draws the line between them (projected, obviously). periodt. πŸ”₯
so basically: two points walk into 3-space and TDLINE is the matchmaker that draws a line between them. not me getting emotional about geometry 😭

πŸŽ€ C-BINDING DESCRIPTION πŸŽ€

ngl the C-binding argument descriptions are literally the same as the FORTRAN argument descriptions. same arguments, same meanings, same everything β€” just, you know, C-shaped now. no notes. 🧚


πŸ‘‘ ACCESS πŸ‘‘

to use TDLINE or c_tdline, you gotta load the NCAR Graphics libraries β€” and the order matters, so listen up:

  1. ncarg
  2. ncarg_gks
  3. ncarg_c

preferably in that order, okay? don't be chaotic about the linking. it's giving organized. it's giving main character energy. ✨


🌈 SEE ALSO 🌈

all the online friends, all the TD pack siblings β€” go say hi:

  • tdclrs
  • tdctri
  • tddtri
  • tdgeti
  • tdgetr
  • tdgrds
  • tdgrid
  • tdgtrs
  • tdinit
  • tditri
  • tdlbla
  • tdlbls
  • tdlnpa
  • tdmtri
  • tdotri
  • tdpack
  • tdpack_params
  • tdpara
  • tdplch
  • tdprpa
  • tdprpi
  • tdprpt
  • tdseti
  • tdsetr
  • tdsort
  • tdstri
  • tdstrs

like a whole group chat honestly πŸ’¬πŸ’–


Copyright (C) 1987-2009 University Corporation for Atmospheric Research

The use of this Software is governed by a License Agreement.

yes bestie, it's real, it's legal, it's binding β€” respect the license or the software will simply not respect you back πŸ™ˆ

okay so that's the whole page, and yes, this was originally a UNIX manpage from July 1997, filed under TDLINE(3NCARG) β€” and now you know it, so go draw some lines in 3-space and slay πŸ’…πŸ¦‹β­ bye bestie, ily, drink water 🌸

πŸ“¦ where this page comes from