Contents

value(at:)

Returns a value from a specific position in the vector.

Declaration

func value(at index: Int) -> CGFloat

Parameters

  • index:

    The position in the vector of the value that you want to retrieve.

Return Value

The value retrieved from the vector or 0 if the position is undefined.

Discussion

The numbering of elements in a vector begins with zero.

See Also

Getting Values From a Vector