Contents

init(cgRect:)

Initialize a Core Image vector object with four values provided by a CGRect structure.

Declaration

convenience init(cgRect r: CGRect)

Parameters

  • r:

    The CGRect structure.

Return Value

An initialized CIVector object of length 4.

Discussion

The CGRect structure’s x, y, height and width values are stored in the vector’s four values.

See Also

Initializing a Vector