Although you could reuse one of several "pair objects" from the graphics library (you can pick from a CGPoint
or CGSize
, or their NS...
equivalents) the struct
s behind these objects are so simple that it would be better to create your own:
typedef struct FPRange {
float location;
float length;
} FPRange;
FPRange FPRangeMake(float _location, float _length) {
FPRange res;
res.location = _location;
res.length = _length;
return res;
}