Function

CGVectorMake

Returns a vector with the specified dimension values.

Declaration

CGVector CGVectorMake(CGFloat dx, CGFloat dy);

Parameters

dx

The x-coordinate of the vector to construct.

dy

The y-coordinate of the vector to construct.

Return Value

Returns a CGVector structure with the specified coordinates.

See Also

Creating a Geometric Primitive from Values

CGPointMake

Returns a point with the specified coordinates.

CGRectMake

Returns a rectangle with the specified coordinate and size values.

CGSizeMake

Returns a size with the specified dimension values.