Difference between revisions of "Array.xy()"

From ZCubes Wiki
Jump to navigation Jump to search
Line 54: Line 54:
 
{| class="wikitable"|-
 
{| class="wikitable"|-
 
| 28  
 
| 28  
|}
 
 
|}
 
 
 
MAGICSQUARE(3).xypanel()
 
 
{| class="wikitable"|-
 
|
 
{| class="wikitable"|-
 
| -1 || -1
 
|}
 
||
 
{| class="wikitable"|-
 
| -1 || 0
 
|}
 
||
 
{| class="wikitable"|-
 
| -1 || 1
 
|}
 
 
|-
 
|
 
{| class="wikitable"|-
 
| 0 || -1
 
|}
 
||
 
{| class="wikitable"|-
 
| 0 || 0
 
|}
 
||
 
{| class="wikitable"|-
 
| 0 || 1
 
|}
 
 
|-
 
|
 
{| class="wikitable"|-
 
| 1 || -1
 
|}
 
||
 
{| class="wikitable"|-
 
| 1 || 0
 
|}
 
||
 
{| class="wikitable"|-
 
| 1 || 1
 
 
|}
 
|}
 
   
 
   
 
|}
 
|}

Revision as of 11:49, 6 March 2017

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

Array.xy(Function, OffsetArray, ScaleArray,GiveIndicesAlso,DoCentering)

Returns the result of applying the Function/FunctionSet to each x,y location of the array, then offsets (adds) and scales the results with OffsetArray [default 0] and ScaleArray [default 1]. GiveIndicesAlso [default false] gives the x,y indices when outputting the result.

DoCentering is by default false [note: DoCentering is advanced option and is undocumented, need detail checking of behavior when this parameter is true].

MAGICSQUARE(3).xy(SUM,12,1)

24
25
26
25
26
27
26
27
28