<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNMatrix4EqualToMatrix4(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:@F@SCNMatrix4EqualToMatrix4"
  },
  "title" : "SCNMatrix4EqualToMatrix4(_:_:)"
}
-->

# SCNMatrix4EqualToMatrix4(_:_:)

Returns a Boolean value that indicates whether the corresponding elements of two matrices are equal.

```
func SCNMatrix4EqualToMatrix4(_ a: SCNMatrix4, _ b: SCNMatrix4) -> Bool
```

## Parameters

`a`

The first matrix to be compared.

`b`

The first matrix to be compared.

## Return Value

True if each element in `matA` is exactly equal to the corresponding element in `b`.

## Discussion

This function performs a numeric (not bitwise) comparison of each pair of elements.

---

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)