Contents

vectorWithCGPoint:

Create a Core Image vector object that is initialized with two values provided by a CGPoint structure.

Declaration

+ (instancetype) vectorWithCGPoint:(CGPoint) p;

Parameters

  • p:

    The CGPoint structure.

Return Value

An autoreleased CIVector object of length 2.

Discussion

The CGRect structure’s y and y values are stored in the vector’s two values.

See Also

Creating a Vector