identity

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

Returns a 2×2 identity matrix.

Since

v2.0.0


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

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

Since

v2.0.0


Deprecated

Use Mat2.identity() instead.

Replace with

Mat2.identity<Float>()

A 2×2 identity matrix.