identity

inline fun <T : Number, Comparable<T>> identity(): Mat4<T>

Returns a 4×4 identity matrix.

Since

v2.0.0


fun <T : Number, Comparable<T>> identity(type: KClass<T>): Mat4<T>

Returns a 4×4 identity matrix with elements of given type.

Since

v2.0.0


Deprecated

Use Mat4.identity() instead.

Replace with

Mat4.identity<Float>()

A 4×4 identity matrix.