Class

CIVector

A container for coordinate values, direction vectors, matrices, and other non-scalar values, typically used in Core Image for filter parameters.

Declaration

@interface CIVector : NSObject

Topics

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.

+ vectorWithCGRect:

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

Initializing a Vector

- initWithValues:count:

Initializes a vector with the provided values.

- initWithX:

Initializes the first position of a vector with the provided values.

- initWithX:Y:

Initializes the first two positions of a vector with the provided values.

- initWithX:Y:Z:

Initializes the first three positions of a vector with the provided values.

- initWithX:Y:Z:W:

Initializes four positions of a vector with the provided values.

- initWithString:

Initializes a vector with values provided in a string representation.

- initWithCGAffineTransform:

Initializes a vector that is initialized with values provided by a CGAffineTransform structure.

- initWithCGPoint:

Initializes a vector that is initialized with values provided by a CGPoint structure.

- initWithCGRect:

Initializes a vector that is initialized with values provided by a CGRect structure.

Getting Values From a Vector

- valueAtIndex:

Returns a value from a specific position in the vector.

count

The number of items in the vector.

X

The value located in the first position in the vector.

Y

The value located in the second position in the vector.

Z

The value located in the third position in the vector.

W

The value located in the fourth position in the vector.

stringRepresentation

The string representation of the vector.

CGAffineTransformValue

The values in the vector represented as an affine transform.

CGPointValue

The values in the vector as a Core Graphics point structure.

CGRectValue

The values in the vector as a Core Graphics rectangle structure.

Relationships

Inherits From

See Also

Filter Parameters

CIColor

The component values defining a color in a specific color space.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software