Back to Filament

getShift

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

1.75.0814 B
Original Source

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

getShift

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

Returns the shift amount used to translate the projection matrix.

Return

A 2-double array containing the x and y shift.

Parameters

main

outA 2-double array where the shift will be stored, or null.