Structure

UIFloatRange

The range of motion for attached objects.

Declaration

typedef struct {
    ...
} UIFloatRange;

Topics

Creating a Float Range

UIFloatRangeMake

Returns a new float range structure from the given components.

UIFloatRangeInfinite

A range whose range is minus infinity to infinity.

UIFloatRangeZero

A range whose minimum and maximum are both 0.0.

Getting the Range Values

maximum

The maximum range of motion for sliding and pin attachments. For sliding attachments, it represents the number of points to move along the axis of translation in the positive direction. For pin attachments, it represents the number of radians to rotate in the clockwise direction. This value must be greater than or equal to 0.

minimum

The minimum range of motion for sliding and pin attachments. For sliding attachments, it represents the number of points to move along the axis of translation in the negative direction. For pin attachments, it represents the number of radians to rotate in the counter-clockwise direction. This value must be less than or equal to 0.

Testing the Range Values

UIFloatRangeIsInfinite

Returns a Boolean indicating whether the specified float range is infinitely large.

UIFloatRangeIsEqualToRange

Returns a Boolean indicating whether two float ranges are equivalent.