Back to Filament

getModelMatrix

docs/android/dokka/filament-android/com.google.android.filament/-camera/get-model-matrix.md

1.75.01.7 KB
Original Source

//filament-android/com.google.android.filament/Camera/getModelMatrix

getModelMatrix

[main]
open fun getModelMatrix(out: Array<Float>): Array<Float>

Retrieves the camera's model matrix. The model matrix encodes the camera position and orientation, or pose.

Return

A 16-float array containing the camera's pose as a column-major matrix.

Parameters

main

outA 16-float array where the model matrix will be stored, or null in which case a new array is allocated.

[main]
open fun getModelMatrix(out: Array<Double>): Array<Double>

Retrieves the camera's model matrix. The model matrix encodes the camera position and orientation, or pose.

Return

A 16-double array containing the camera's pose as a column-major matrix.

Parameters

main

outA 16-double array where the model matrix will be stored, or null in which case a new array is allocated.