---
title: "CGVectorMake(_:_:)"
framework: coregraphics
role: symbol
role_heading: Function
path: "coregraphics/cgvectormake(_:_:)"
---

# CGVectorMake(_:_:)

Returns a vector with the specified dimension values.

## Declaration

```swift
func CGVectorMake(_ dx: CGFloat, _ dy: CGFloat) -> CGVector
```

## Parameters

- `dx`: The x-coordinate of the vector to construct.
- `dy`: The y-coordinate of the vector to construct.

## Return Value

Return Value Returns a CGVector structure with the specified coordinates.

## See Also

### Creating a Geometric Primitive from Values

- [CGPointMake(_:_:)](coregraphics/cgpointmake(_:_:).md)
- [CGRectMake(_:_:_:_:)](coregraphics/cgrectmake(_:_:_:_:).md)
- [CGSizeMake(_:_:)](coregraphics/cgsizemake(_:_:).md)
