aboutsummaryrefslogtreecommitdiff
path: root/sys/pmio/pmsplane.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pmio/pmsplane.x')
-rw-r--r--sys/pmio/pmsplane.x22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/pmio/pmsplane.x b/sys/pmio/pmsplane.x
new file mode 100644
index 00000000..4fcad1fd
--- /dev/null
+++ b/sys/pmio/pmsplane.x
@@ -0,0 +1,22 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <pmset.h>
+include <plio.h>
+
+# PM_SETPLANE -- Set the 2-Dim plane to be referenced in calls to the pm_box,
+# pm_circle, etc. geometric region masking operators.
+
+procedure pm_setplane (pl, v)
+
+pointer pl #I mask descriptor
+long v[ARB] #I vector defining plane
+
+include "pmio.com"
+
+begin
+ if (PM_MAPXY(pl) == YES) {
+ call imaplv (PM_REFIM(pl), v, v1, PM_MAXDIM)
+ call pl_setplane (pl, v1)
+ } else
+ call pl_setplane (pl, v)
+end