Initializer

init(cgVector:)

Creates a new value object containing the specified CoreGraphics vector structure.

Declaration

init(cgVector vector: CGVector)

Parameters

vector

The value for the new object.

Return Value

A new value object that contains the vector information.

See Also

Working with CoreGraphics Geometry Values

init(cgPoint: CGPoint)

Creates a new value object containing the specified CoreGraphics point structure.

init(cgSize: CGSize)

Creates a new value object containing the specified CoreGraphics size structure.

init(cgRect: CGRect)

Creates a new value object containing the specified CoreGraphics rectangle structure.

init(cgAffineTransform: CGAffineTransform)

Creates a new value object containing the specified CoreGraphics affine transform structure.

var cgPointValue: CGPoint

Returns the CoreGraphics point structure representation of the value.

var cgVectorValue: CGVector

Returns the CoreGraphics vector structure representation of the value.

var cgSizeValue: CGSize

Returns the CoreGraphics size structure representation of the value.

var cgRectValue: CGRect

Returns the CoreGraphics rectangle structure representation of the value.

var cgAffineTransformValue: CGAffineTransform

Returns the CoreGraphics affine transform representation of the value.