Contents

init(cgPoint:)

Initialize a Core Image vector object with two values provided by a CGPoint structure.

Declaration

convenience init(cgPoint p: CGPoint)

Parameters

  • p:

    The CGPoint structure.

Return Value

An initialized CIVector object of length 2.

Discussion

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

See Also

Initializing a Vector