Type Method

vectorWithCGRect:

Creates and returns a vector that is initialized with values provided by a CGRect structure.

Declaration

+ (instancetype)vectorWithCGRect:(CGRect)r;

Parameters

r

A rect.

Return Value

A vector initialized with the specified values.

Discussion

The CGRect structure’s X, Y, height and width values are stored in the vector’s X, Y, Z and W properties.

See Also

Creating a Vector

+ vectorWithValues:count:

Creates and returns a vector that is initialized with the specified values.

+ vectorWithX:

Creates and returns a vector that is initialized with one value.

+ vectorWithX:Y:

Creates and returns a vector that is initialized with two values.

+ vectorWithX:Y:Z:

Creates and returns a vector that is initialized with three values.

+ vectorWithX:Y:Z:W:

Creates and returns a vector that is initialized with four values.

+ vectorWithString:

Creates and returns a vector that is initialized with values provided in a string representation.

+ vectorWithCGAffineTransform:

Creates and returns a vector that is initialized with values provided by a CGAffineTransform structure.

+ vectorWithCGPoint:

Creates and returns a vector that is initialized with values provided by a CGPoint structure.