DPVECT(3NCARG)
β¨ 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 typeREALthat specifies the X coordinate of a point, in the user coordinate system. it's giving "horizontal situation". πYCPUβ an input expression of typeREALthat 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:
- Call
DPFRSTto do a "pen-up" move to the first of a sequence of points defining a curve. - Call
DPVECTto do "pen-down" moves to each of the other points in the sequence. - Then call
DPLASTto 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 π
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
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms