DPVECT(3NCARG)

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

✨ DPVECT β€” it's giving "draw the rest of the curve, bestie" ✨

okay so real talk, this is a page from the NCAR GRAPHICS manual, section 3NCARG, and the star of the show is a little subroutine called DPVECT. πŸŽ€ She's lowkey iconic and you're gonna love her.


🌸 NAME 🌸

DPVECT β€” she specifies the second and following points in a sequence of points, in the user coordinate system, defining a curve to be drawn. like, she's not the one who starts the curve, she's the one who <em>keeps it going</em>. main character energy but make it supportive. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

CALL DPVECT (XCPU,YCPU)

that's it. that's the whole vibe. ✨


πŸ’œ C-BINDING SYNOPSIS πŸ’œ

#include <ncarg/ncargC.h>

void c_dpvect (float xcpu, float ycpu);

yes bestie, there's a C version too, we're inclusive here 🫢


🌈 DESCRIPTION 🌈

  • XCPU β€” an input expression of type REAL that specifies the X coordinate of a point, in the user coordinate system. it's giving "horizontal situation". πŸ“
  • YCPU β€” an input expression of type REAL that specifies the Y coordinate of a point, in the user coordinate system. vertical vibes only. πŸ“

🧚 C-BINDING DESCRIPTION 🧚

okay so the C-binding argument descriptions are literally the same as the FORTRAN argument descriptions. no notes, no changes, identical twins fr fr. πŸ‘―


πŸ‘‘ USAGE πŸ‘‘

here's the whole choreography, bestie, write it down:

  1. Call DPFRST to do a "pen-up" move to the first of a sequence of points defining a curve.
  2. Call DPVECT to do "pen-down" moves to each of the other points in the sequence.
  3. Then call DPLAST to finish drawing the curve and flush the buffers. don't skip this one, the buffers are NOT gonna flush themselves. 😭

and like, what does DPVECT actually do under the hood? she maps the input coordinates to the fractional coordinate system and then does a "pen-down" call to either:

  • DPDRAW β€” if smoothing is turned off 🚫
  • DPSMTH β€” if smoothing is turned on βœ…

with those coordinates. periodt. πŸ’…


πŸ“ EXAMPLES πŸ“

use the ncargex command to see the following relevant examples: tdshpk.

go look at it. it's right there. slay. πŸ”₯


πŸŽ€ ACCESS πŸŽ€

to use DPVECT or c_dpvect, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” preferably in that order. the order matters, bestie, do not freestyle this one. πŸ™ˆ


⭐ SEE ALSO ⭐

Online: dashpack, dashpack_params, dpcurv, dpdraw, dpfrst, dpgetc, dpgeti, dpgetr, dplast, dpline, dpsetc, dpseti, dpsetr, dpsmth, dpvect, ncarg_cbind.

Hardcopy: None. (ngl, the hardcopy section is giving absolutely nothing today πŸ’€)


Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.


ok that's the whole page, you ate that fr fr πŸ’…βœ¨

and for the cute sign-off: this lil masterpiece comes to you from the UNIX side of the manual, dated March 1995, filed under DPVECT(3NCARG). yes she's vintage, yes she still serves. πŸ¦‹πŸ’–

πŸ“¦ where this page comes from