<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/simd/reflect(_:n:)-3rhgb",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "simd"
    ],
    "preciseIdentifier" : "s:4simd7reflect_1ns5SIMD2VySdGAF_AFtF"
  },
  "title" : "reflect(_:n:)"
}
-->

# reflect(_:n:)

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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)