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

# reflect(_:n:)

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

## Declaration

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

## See Also

### Geometry Functions

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