Function

SCNMatrix4IsIdentity(_:)

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

Declaration

func SCNMatrix4IsIdentity(_ m: SCNMatrix4) -> Bool

Parameters

mat

The matrix to be tested.

Return Value

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

See Also

Comparing Matrices

func SCNMatrix4EqualToMatrix4(SCNMatrix4, SCNMatrix4) -> Bool

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