scale

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

Creates a transformation matrix for scaling by a given scale.


inline fun <T : Number, Comparable<T>> scale(x: T = one(), y: T = one(), z: T = one()): Mat4<T>
fun <T : Number, Comparable<T>> scale(x: T, y: T, z: T, type: KClass<T>): Mat4<T>

Creates a transformation matrix for scaling by a given scale in x, y and z directions.