viewToBufferMatrix

fun viewToBufferMatrix(viewWidth: Float, viewHeight: Float, cropLeft: Float, cropTop: Float, cropRight: Float, cropBottom: Float, rotationDegrees: Int): FloatArray(source)

The affine map, as a row-major 3x3, from view pixels to the pixels of a camera buffer whose crop the view shows rotated clockwise by rotationDegrees and center-cropped to fill, the way the preview fills the mesh view.