---
title: "SCNMatrix4IsIdentity(_:)"
framework: scenekit
role: symbol
role_heading: Function
path: "scenekit/scnmatrix4isidentity(_:)"
---

# SCNMatrix4IsIdentity(_:)

Returns a Boolean value that indicates whether the specified matrix is equal to the identity matrix.

## Declaration

```swift
func SCNMatrix4IsIdentity(_ m: SCNMatrix4) -> Bool
```

```swift
func SCNMatrix4IsIdentity(_ m: SCNMatrix4) -> Bool
```

## Parameters

- `m`: The matrix to be tested.

## Return Value

Return Value True if the elements on the matrix’s diagonal are 1.0 and all other elements are 0.0.

## See Also

### Related Documentation

- [SCNMatrix4Identity](scenekit/scnmatrix4identity.md)

### Comparing Matrices

- [SCNMatrix4EqualToMatrix4(_:_:)](scenekit/scnmatrix4equaltomatrix4(_:_:).md)
