Contents

init(cgPoint:)

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

Declaration

convenience init(cgPoint p: CGPoint)

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