Difference between revisions of "Array.nodeindex()"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "* << Z3 Home * Z3 Language Documentation * Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member F...")
 
Line 11: Line 11:
  
 
Same as [[Array.indices()]] but intended to get the nodeindex only.
 
Same as [[Array.indices()]] but intended to get the nodeindex only.
 +
 +
 +
MAGICSQUARE(3).nodeindex()
 +
 +
{| class="wikitable"|-
 +
|
 +
{| class="wikitable"|-
 +
| 0 || 0
 +
|}
 +
||
 +
{| class="wikitable"|-
 +
| 0 || 1
 +
|}
 +
||
 +
{| class="wikitable"|-
 +
| 0 || 2
 +
|}
 +
 +
|-
 +
|
 +
{| class="wikitable"|-
 +
| 1 || 0
 +
|}
 +
||
 +
{| class="wikitable"|-
 +
| 1 || 1
 +
|}
 +
||
 +
{| class="wikitable"|-
 +
| 1 || 2
 +
|}
 +
 +
|-
 +
|
 +
{| class="wikitable"|-
 +
| 2 || 0
 +
|}
 +
||
 +
{| class="wikitable"|-
 +
| 2 || 1
 +
|}
 +
||
 +
{| class="wikitable"|-
 +
| 2 || 2
 +
|}
 +
 +
|}

Revision as of 11:02, 6 March 2017

These functions operate on array locations and values to create contours and other interesting operations. Array Indices and XY Functions

Array.nodeindex()

Simply gives the indices of the node.

Same as Array.indices() but intended to get the nodeindex only.


MAGICSQUARE(3).nodeindex()

0 0
0 1
0 2
1 0
1 1
1 2
2 0
2 1
2 2