Initializer

init(x:y:z:w:)

Initializes four positions of a vector with the provided values.

Declaration

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

Parameters

x

The initialization value for the first position.

y

The initialization value for the second position.

z

The initialization value for the third position.

w

The initialization value for the fourth position.

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(string: String)

Initializes a vector with values provided in a string representation.

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.