GSET_SEG_TRAN(3NCARG)

πŸ’– GSET_SEG_TRAN πŸ’–

okay so bestie, welcome to the NCAR GRAPHICS corner of the manual, this one lives in section 3NCARG and it's literally called gset_seg_tran β€” which is short for Set segment transformation ✨

🌸 NAME 🌸

gset_seg_tran (Set segment transformation) β€” she associates a segment transformation with a named segment. that's it, that's the whole job, and she does it flawlessly πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <ncarg/gks.h>

void gset_seg_tran(Gint seg_name, const Gtran_matrix tran_matrix);

πŸ¦‹ DESCRIPTION πŸ¦‹

  • seg_name β€” (Input) a segment name, as used in a previous gcreate_seg call. like, the name you already gave your segment earlier, yeah that one 🫢
  • tran_matrix β€” (Gfloat, Input) β€” a 2x3 array giving the GKS segment transformation to be associated with the segment specified in seg_name. two by three. iconic dimensions. no cap.

🌈 USAGE 🌈

when the segment named in seg_name gets displayed, the coordinates of its primitives are transformed by the matrix specified in tran_matrix. so like... the matrix is doing the glow-up on the coordinates, basically πŸ’«


πŸ‘‘ ACCESS πŸ‘‘

to use the GKS C-binding routines, load the ncarg_gks and ncarg_c libraries. both of them. don't skip one, bestie, that's giving broken build energy 😭


⭐ SEE ALSO ⭐

Online: gaccum_tran_matrix(3NCARG), geval_tran_matrix(3NCARG), gclose_seg(3NCARG), gcreate_seg(3NCARG), gcopy_seg_ws(3NCARG), gdel_seg(3NCARG), ginq_name_open_seg(3NCARG), ginq_set_seg_names(3NCARG), gks(3NCARG), ncarg_gks_cbind(3NCARG)

Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version


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 lil masterpiece was chillin' in the UNIX manual back in March 1993 β€” vintage fr fr, but the lore still hits 🌸✨ mwah, go transform some segments, you got this πŸ«ΆπŸ’–