equals

open operator override fun equals(other: Any?): Boolean

Structural equality: true when other is a Matrix4 with equal elements. DoubleArray.contentEquals compares them, so NaN equals NaN and -0.0 does not equal 0.0.