---
title: "reflect(_:n:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/reflect(_:n:)-6w80i"
---

# reflect(_:n:)

Returns the reflection direction of an incident vector and a unit normal vector.

## Declaration

```swift
func reflect(_ x: SIMD2<Float>, n: SIMD2<Float>) -> SIMD2<Float>
```

## See Also

### Geometry Functions

- [cross(_:_:)](simd/cross(_:_:)-53xk2.md)
- [dot(_:_:)](simd/dot(_:_:)-1vb5g.md)
- [normalize(_:)](simd/normalize(_:)-100kb.md)
- [project(_:_:)](simd/project(_:_:)-9wt83.md)
- [refract(_:n:eta:)](simd/refract(_:n:eta:)-5bv79.md)
