Spectacular Cellular Automata
Website
Source Repository
Jira
Documents
Preparing search index...
lib/tools
posToIndex
Function posToIndex
posToIndex
(
x
:
number
,
y
:
number
,
w
:
number
,
h
:
number
)
:
number
Convert 2D position to 1D array index.
Parameters
x
:
number
y
:
number
w
:
number
Cell Grid width
h
:
number
Cell Grid height
Returns
number
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Website
Source Repository
Jira
Documents
Spectacular Cellular Automata
Loading...
Convert 2D position to 1D array index.