Back to Filament

getProjectionMatrix

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

1.75.01.1 KB
Original Source

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

getProjectionMatrix

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

Retrieves the camera's projection matrix. The projection matrix used for rendering always has its far plane set to infinity. This is why it may differ from the matrix set through setProjection() or setLensProjection().

Return

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

Parameters

main

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