---
title: "dot(_:_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/dot(_:_:)-6ayky"
---

# dot(_:_:)

Returns the dot product of two vectors.

## Declaration

```swift
func dot(_ x: SIMD2<Double>, _ y: SIMD2<Double>) -> Double
```

## See Also

### Geometry Functions

- [cross(_:_:)](simd/cross(_:_:)-916aw.md)
- [normalize(_:)](simd/normalize(_:)-5mqhk.md)
- [project(_:_:)](simd/project(_:_:)-kai1.md)
- [reflect(_:n:)](simd/reflect(_:n:)-3rhgb.md)
- [refract(_:n:eta:)](simd/refract(_:n:eta:)-1ghae.md)
