Type Method

rangeWithValue:variance:

Creates and initializes a new range object using a value and a maximum distance from that value.

Declaration

+ (instancetype)rangeWithValue:(CGFloat)value variance:(CGFloat)variance;

Parameters

value

The midpoint for the range.

variance

The maximum amount that a value may differ from the midpoint.

Return Value

A newly initialized range object whose minimum value is value-variance and whose maximum value is value+variance.

See Also

Creating a Range Object

+ rangeWithLowerLimit:upperLimit:

Creates and initializes a new range object.

+ rangeWithNoLimits

Creates and initializes a new range object that encompasses all possible values.

+ rangeWithLowerLimit:

Creates and initializes a new range object that specifies only a minimum value.

+ rangeWithUpperLimit:

Creates and initializes a new range object that specifies only a maximum value.

+ rangeWithConstantValue:

Creates and initializes a new range object that specifies a constant value.

- initWithLowerLimit:upperLimit:

Initializes a new range object.