Instance Property

cgRectValue

The values in the vector as a Core Graphics rectangle structure.

Declaration

var cgRectValue: CGRect { get }

Discussion

Reading this property creates a CGRect structure whose origin is the x and y values in the vector and whose size is the z and w values in the vector.

See Also

Getting Values From a Vector

func value(at: Int) -> CGFloat

Returns a value from a specific position in the vector.

var count: Int

The number of items in the vector.

var x: CGFloat

The value located in the first position in the vector.

var y: CGFloat

The value located in the second position in the vector.

var z: CGFloat

The value located in the third position in the vector.

var w: CGFloat

The value located in the fourth position in the vector.

var stringRepresentation: String

The string representation of the vector.

var cgAffineTransformValue: CGAffineTransform

The values in the vector represented as an affine transform.

var cgPointValue: CGPoint

The values in the vector as a Core Graphics point structure.