Type Method

vectorWithValues:count:

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

Declaration

+ (instancetype)vectorWithValues:(const CGFloat *)values count:(size_t)count;

Parameters

values

The values to initialize the vector with.

count

The number of values in the vector.

Return Value

A vector initialized with the provided values.

See Also

Creating a Vector

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

+ vectorWithCGRect:

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