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

# reflect(_:n:)

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

## Declaration

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

## See Also

### Geometry Functions

- [cross(_:_:)](simd/cross(_:_:)-8xu8k.md)
- [dot(_:_:)](simd/dot(_:_:)-4gb9g.md)
- [normalize(_:)](simd/normalize(_:)-ac7.md)
- [project(_:_:)](simd/project(_:_:)-9ggyv.md)
- [refract(_:n:eta:)](simd/refract(_:n:eta:)-7jv66.md)
