Function GridNodeBase.OppositeConnectionDirection

OppositeConnectionDirection (int dir)

The connection opposite the given one.

Public Static
int OppositeConnectionDirection (

int

dir

)

The connection opposite the given one.

Z
|
|

6 2 5
\ | /
-- 3 - X - 1 ----- X
/ | \
7 0 4

|
|

For example, dir=1 outputs 3, dir=6 outputs 4 and so on.