transform

fun transform(matrix: Matrix, normalMatrix: Matrix? = null, res: Plane)

Transforms a #graphene_plane_t @p using the given @matrix and @normal_matrix.

If @normal_matrix is null, a transformation matrix for the plane normal will be computed from @matrix. If you are transforming multiple planes using the same @matrix it's recommended to compute the normal matrix beforehand to avoid incurring in the cost of recomputing it every time.

Since

1.10

Parameters

matrix

a #graphene_matrix_t

normalMatrix

a #graphene_matrix_t

res

the transformed plane