Back to Filament

getViewMatrix

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

1.75.01.7 KB
Original Source

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

getViewMatrix

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

Retrieves the camera's view matrix. The view matrix is the inverse of the model matrix.

Return

A 16-float array containing the camera's column-major view matrix.

Parameters

main

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

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

Retrieves the camera's view matrix. The view matrix is the inverse of the model matrix.

Return

A 16-double array containing the camera's column-major view matrix.

Parameters

main

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