transform

fun transform(baseTransform: Matrix44 = Matrix44.IDENTITY, builder: TransformBuilder.() -> Unit): Matrix44(source)

Build a transform presented by a Matrix44

Usage example:

val t = transform {
translate(10.0, 20.0, 30.0)
rotate(45.0)
scale(2.0, 2.0, 2.0)
}

Parameters

baseTransform

the transform to start with, default is an identity matrix

builder

a function that is invoked inside the TransformBuilder context


@JvmName(name = "matrix44Transform")
fun Matrix44.transform(builder: TransformBuilder.() -> Unit): Matrix44(source)

Matrix44 transform helper


Matrix44 property transform helper