- Source:
Methods
-
<static> create(entities, dimensions)
-
Create a new map
Parameters:
Name Type Description entities
Array dimensions
any - Source:
-
<static> create(entities, dimensions)
-
Create a new map
Parameters:
Name Type Description entities
Array dimensions
any - Source:
-
<static> discreteSamples( [n=]) → {Array.<any>}
-
Get n discrete samples from array
Parameters:
Name Type Argument Description n=
number <optional>
Number of samples to pick. Default = 1
- Source:
Returns:
- Type
- Array.<any>
-
<static> discreteSamples( [n=]) → {Array.<any>}
-
Get n discrete samples from array
Parameters:
Name Type Argument Description n=
number <optional>
Number of samples to pick. Default = 1
- Source:
Returns:
- Type
- Array.<any>
-
<static> getByID(id) → {Entity}
-
Get Entity with ID
Parameters:
Name Type Description id
string ID of
Entity
- Source:
Returns:
- Type
- Entity
-
<static> getByID(id) → {Entity}
-
Get Entity with ID
Parameters:
Name Type Description id
string ID of
Entity
- Source:
Returns:
- Type
- Entity
-
<static> insert(entity)
-
Parameters:
Name Type Description entity
Object - Source:
-
<static> insert(entity)
-
Parameters:
Name Type Description entity
Object - Source:
-
<static> nearest(entity, count, maxDistance) → {Array.Neighbors}
-
Parameters:
Name Type Description entity
Object Entity
count
number Number of neighbors
maxDistance
any Range to check within
- Source:
Returns:
- Type
- Array.Neighbors
-
<static> nearest(entity, count, maxDistance) → {Array.Neighbors}
-
Parameters:
Name Type Description entity
Object Entity
count
number Number of neighbors
maxDistance
any Range to check within
- Source:
Returns:
- Type
- Array.Neighbors