Instance Property

stringRepresentation

The string representation of the vector.

Declaration

@property(readonly) NSString *stringRepresentation;

Discussion

Some example string representations of vectors :

  • @"[1.0 0.5 0.3]" — a vec3 vector whose components are X = 1.0, Y = 0.5, and Z = 0.3

  • @"[10.0 23.0] — a vec2 vector whose components are X = 10.0 and Y = 23.0

To create a CIVector object from a string representation, use the vectorWithString: method.

See Also

Getting Values From a Vector

- valueAtIndex:

Returns a value from a specific position in the 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.

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.