toMatrix

fun toMatrix(): FloatArray

Returns the 4x4 transformation matrix as a FloatArray.

This method provides access to the underlying matrix for advanced users who need to interface with AR frameworks (ARCore, SceneView) or perform custom matrix operations.

The matrix is in column-major order (OpenGL convention).

Return

A FloatArray of 16 elements representing the 4x4 matrix