---
title: "SCNMatrix4EqualToMatrix4(_:_:)"
framework: scenekit
role: symbol
role_heading: Function
path: "scenekit/scnmatrix4equaltomatrix4(_:_:)"
---

# SCNMatrix4EqualToMatrix4(_:_:)

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

## Declaration

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

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

## Parameters

- `a`: The first matrix to be compared.
- `b`: The first matrix to be compared.

## Return Value

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

## Discussion

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

## See Also

### Comparing Matrices

- [SCNMatrix4IsIdentity(_:)](scenekit/scnmatrix4isidentity(_:).md)
