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

# reflect(_:n:)

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

## Declaration

```swift
func reflect(_ x: SIMD4<Double>, n: SIMD4<Double>) -> SIMD4<Double>
```

## See Also

### Geometry Functions

- [dot(_:_:)](simd/dot(_:_:)-5ifd.md)
- [normalize(_:)](simd/normalize(_:)-3lhrd.md)
- [project(_:_:)](simd/project(_:_:)-1uuxo.md)
- [refract(_:n:eta:)](simd/refract(_:n:eta:)-2macj.md)
