resolveNumber MethodStatic
If given a number, return it. If given undefined, return defaultValue
.
resolveNumber(value: undefined | number, defaultValue: number = 0): number
Parameter | Type | Description |
---|---|---|
value | undefined | number | |
defaultValue | number |
Returns - number
Defined in
- Geometry.ts Line 660
Last Updated: 30 November, 2023