SKUPositionObject
IntroductionFor easy passing of struct data through mediums that only accept objects, like NSArrays or performSelectors that only accept passing of objects. GroupsInitializationGroup members:
Conversion and retrievalMethodsposition:+(SKUPositionObject*)position:(CGPoint)location; ParametersReturn ValueSKUPositionObject with input position data DiscussionCreates and returns an SKUPositionObject from a CGPoint parameter. This becomes the origin in the bundled CGRect. rect:+(SKUPositionObject*)rect:(CGRect)rect; ParametersReturn ValueSKUPositionObject with input rect data DiscussionCreates and returns an SKUPositionObject from a CGRect parameter. This sets the position property from the origin and the size property from the size. size:+(SKUPositionObject*)size:(CGSize)size; ParametersReturn ValueSKUPositionObject with input size data DiscussionCreates and returns an SKUPositionObject from a CGSize parameter. This becomes the size in the bundled CGRect. vector:+(SKUPositionObject*)vector:(CGVector)vector; ParametersReturn ValueSKUPositionObject with input vector data DiscussionCreates and returns an SKUPositionObject from a CGVector parameter. This becomes the origin in the bundled CGRect. Propertiesposition@property (nonatomic) CGPoint position; DiscussionCGPoint representation of data. rect@property (nonatomic) CGRect rect; DiscussionCGRect representation of data. size@property (nonatomic) CGSize size; DiscussionCGSize representation of data. vector@property (nonatomic) CGVector vector; DiscussionCGVector representation of data. |