GSEL_NORM_TRAN(3NCARG)

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

πŸ’– GSEL_NORM_TRAN β€” bestie edition πŸ’–

okay so this is a page from the NCAR GRAPHICS manual, section 3NCARG, and it's about a lil function called gsel_norm_tran. Say it with me: it selects a normalization transformation. And what does a normalization transformation do?? it maps world coordinates ➑️ normalized device coordinates. that's the whole gig. she's a coordinate glow-up specialist πŸ’…


✨ NAME ✨

gsel_norm_tran (aka Select normalization transformation) β€” she picks a predefined or user-defined transformation that maps world coordinates onto normalized device coordinates. iconic behavior honestly πŸ¦‹


🌸 SYNOPSIS 🌸

#include <ncarg/gks.h>

void gsel_norm_tran(Gint tran_num);

like… one argument. one. we love a low-maintenance queen πŸ‘‘


πŸŽ€ DESCRIPTION πŸŽ€

  • tran_num β€” (Input) the normalization transformation number you want. so real talk: how many transformations are available is implementation specific β€” that's not me being vague, that's literally the spec. but in the case of NCAR GKS-0A, you get two (2) transformations, and here they are, no cap:
  • 0 β€” selects the identity transformation, where both the window and the viewport have the range of 0. to 1. in both coordinate directions. this one is the default, so if you don't say anything, this is the vibe you're getting 🫢
  • 1 β€” selects a normalization transformation where the window and viewport have been defined by calls to gset_win and gset_vp. so like, you gotta have actually set those up first, bestie. it's giving "bring your own window" 😭

🌈 USAGE 🌈

the moment a normalization transformation gets selected, all world coordinate arguments handed to GKS functions get transformed by it. every single one. it's a whole-group-project situation and everybody's participating ✨


🧚 ACCESS 🧚

wanna use the GKS C-binding routines? then load up the ncarg_gks and ncarg_c libraries. that's the entry fee, no exceptions πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘

Online:

  • set(3NCARG)
  • gset_win(3NCARG)
  • gset_vp(3NCARG)
  • ginq_clip(3NCARG)
  • gks(3NCARG)
  • ncarg_gks_cbind(3NCARG)

Hardcopy:

  • User's Guide for NCAR GKS-0A Graphics
  • NCAR Graphics Fundamentals, UNIX Version

go read the friends, they're all connected, iykyk πŸ“š


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

(read the license, bestie. fr fr. don't be the person who didn't read it πŸ™ˆ)


and that's the whole page!! this one came from the UNIX flavor of the manual, dated March 1993, filed under GSEL_NORM_TRAN(3NCARG). yes, 1993. she's vintage, she's thriving, she ate and left no crumbs πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from