From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/gio/gks/gschup.x | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sys/gio/gks/gschup.x (limited to 'sys/gio/gks/gschup.x') diff --git a/sys/gio/gks/gschup.x b/sys/gio/gks/gschup.x new file mode 100644 index 00000000..d7698c41 --- /dev/null +++ b/sys/gio/gks/gschup.x @@ -0,0 +1,23 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include + +# GSCHUP -- Set character up vector. + +procedure gschup (chux, chuy) + +real chux, chuy # Character up vector, in world coordinates +int char_up +bool fp_equalr() + +begin + # Find the angle normal to the text baseline. The angle is stored + # in degrees between -180 and +180. + + if (fp_equalr (chux, 0.0)) + char_up = 90 + else + char_up = nint (atan2 (chuy, chux) * 180. / 3.1415926) + + call gsawi (G_TXUP, char_up) +end -- cgit