new Dimensional(dimensionality)
Common supertype of all types with dimensions.
Parameters:
Name | Type | Description |
---|---|---|
dimensionality |
Array | number | An array whose entries represent an index and whose value is the dimensionality of that index -or- a number that represents the dimensionality. |
Example
// Creates a Dimensional with a 3-dimensional index and a 4-dimensional
// index, just like a 3x4 Matrix.
new Dimensional([3, 4]);
Extends
- Array
Methods
equals(array) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
array |
Array | The array to compare this Dimensional to. |
Returns:
True if all entries are equal, false otherwise.
- Type
- boolean