Class

SKRange

A definition of a range of floating-point values.

Declaration

@interface SKRange : NSObject

Overview

You typically use a SKRange to clamp a value so that it is within the specified range.

Topics

Creating a Range Object

+ rangeWithLowerLimit:upperLimit:

Creates and initializes a new range object.

+ rangeWithValue:variance:

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

+ 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.

Inspecting a Range Object’s Limits

lowerLimit

The minimum possible value.

upperLimit

The maximum possible value.

Relationships

Inherits From

See Also

Mathematical Tools

SKKeyframeSequence

An object that performs interpolation between values specified at different times (keyframes).

SKRegion

The definition of an arbitrary area.