Class: Range

PhotoEditorSDK.Math~ Range

Represents a closed range

new Range(min, max)

sdk/core/lib/math/range.js, line 27

Creates a closed range

Name Type Description
min Number

The smallest number included in the range

max Number

The largest number included in the range

Methods

contains(value){Boolean}

sdk/core/lib/math/range.js, line 61

Returns true if the specified value is contained in this range

Name Type Description
value Number
Returns:
Type Description
Boolean

getLength(){Number}

sdk/core/lib/math/range.js, line 52

Returns the length of this range

Returns:
Type Description
Number

getMax(){Number}

sdk/core/lib/math/range.js, line 44

Returns the upper bound of the range

Returns:
Type Description
Number

getMin(){Number}

sdk/core/lib/math/range.js, line 36

Returns the lower bound of the range

Returns:
Type Description
Number