Prev Up Next
Go backward to 1D gates
Go up to Gates
Go forward to Elliptical gates

2D gates

A 2D gate-map consists of one or more sets of x-y coordinate pairs. Each set defines a polygonal-shaped gate in two dimensions against which pairs of values may be tested in the commands section. If any polygons overlap within a set successive gates have precedence over earlier ones.


GATES* 2D <2D-gate-map-name>[<xrange>,<yrange>]

(<gate of 1D coordinate pairs>)1

(<gate of 1D coordinate pairs>)2

...

(<gate of 1D coordinate pairs>)ngates


*or GATEMAP for compatibility with earlier versions.

eg.

GATES  2D  MASSMAP[64,64]
(11  44  13  36  18  30  25  29  28  35  30  49  26  60
20  58)
(31  62  29  1  52  1  51  62)
Defines the map MASSMAP with limits 0 to 63 in both the x- and y- directions. A coordinate pair will pass a polygonal gate if the point it defines falls within the polygonal shape defined by that gate.

Note

1. The coordinate pairs are not individually separated to simplify the syntax, hence care must be taken when inputting the data.

2. 2D gatemaps become large for large values of <xrange> and <yrange>.


support@ns.ph.liv.ac.uk

Prev Up Next