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

# reflect(_:n:)

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

## Declaration

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

## See Also

### Geometry Functions

- [dot(_:_:)](simd/dot(_:_:)-47df.md)
- [normalize(_:)](simd/normalize(_:)-6g9xc.md)
- [project(_:_:)](simd/project(_:_:)-pdsh.md)
- [refract(_:n:eta:)](simd/refract(_:n:eta:)-8qo9c.md)
