Instance Method

valueAtIndex:

Returns a value from a specific position in the vector.

Declaration

- (CGFloat)valueAtIndex:(size_t)index;

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

count

The number of items in the vector.

X

The value located in the first position in the vector.

Y

The value located in the second position in the vector.

Z

The value located in the third position in the vector.

W

The value located in the fourth position in the vector.

stringRepresentation

The string representation of the vector.

CGAffineTransformValue

The values in the vector represented as an affine transform.

CGPointValue

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

CGRectValue

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