Initializer

init(string:)

Initializes a vector with values provided in a string representation.

Declaration

convenience init(string representation: String)

Parameters

representation

A string that is in one of the formats returned by the stringRepresentation method.

See Also

Initializing a Vector

init(values: UnsafePointer<CGFloat>, count: Int)

Initializes a vector with the provided values.

init(x: CGFloat)

Initializes the first position of a vector with the provided values.

init(x: CGFloat, y: CGFloat)

Initializes the first two positions of a vector with the provided values.

init(x: CGFloat, y: CGFloat, z: CGFloat)

Initializes the first three positions of a vector with the provided values.

init(x: CGFloat, y: CGFloat, z: CGFloat, w: CGFloat)

Initializes four positions of a vector with the provided values.

init(cgAffineTransform: CGAffineTransform)

Initializes a vector that is initialized with values provided by a CGAffineTransform structure.

init(cgPoint: CGPoint)

Initializes a vector that is initialized with values provided by a CGPoint structure.

init(cgRect: CGRect)

Initializes a vector that is initialized with values provided by a CGRect structure.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software