Contents

string(for:)

Returns a string formatted to contain the data from a vector data structure.

Declaration

class func string(for vector: CGVector) -> String

Parameters

  • vector:

    A Core Graphics structure representing a two-dimensional vector.

Return Value

A string that corresponds to vector. See cgVector(for:) for a discussion of the string format.

See Also

Representing Geometric Types as Strings