Constructor
new Spacing(values)
Parameters:
Name | Type | Description |
---|---|---|
values | Array.<number> | The spacing values. |
- Source
Classes
Methods
equals(rhs) → {boolean}
Check for equality.
Parameters:
Name | Type | Description |
---|---|---|
rhs | Spacing | The object to compare to. |
- Source
Returns:
True if both objects are equal.
- Type:
- boolean
get(i) → {number}
Get the spacing value at the given array index.
Parameters:
Name | Type | Description |
---|---|---|
i | number | The index to get. |
- Source
Returns:
The value.
- Type:
- number
get2D() → {Scalar2D}
Get the 2D base of this size.
- Source
Returns:
The 2D base [col,row] as {x,y}.
- Type:
- Scalar2D
getValues() → {Array.<number>}
Get the values of this spacing.
- Source
Returns:
The array of values.
- Type:
- Array.<number>
length() → {number}
Get the length of the spacing.
- Source
Returns:
The length.
- Type:
- number
toString() → {string}
Get a string representation of the spacing.
- Source
Returns:
The spacing as a string.
- Type:
- string