convertMercatorModelMatrix

abstract fun convertMercatorModelMatrix(@NonNull matrix: List<Double>, ignoreDistortion: Boolean): List<Double>

Convert a model matrix to be usable with the currently active projection. The input matrix is expected to transform coordinates from a local coordinate space into web mercator coordinate space where x &y axes are defined in pixels and z in meters. The output matrix will transform local coordinates and align them correctly on the world coordinate space.

Return

Model matrix for rendering primitives on the active projection. Size of the input matrix needs to be 16 or no value is returned.

Parameters

matrix

Model matrix for rendering primitives on web mercator projection

ignoreDistortion

Determine whether the output matrix should keep metric size of the model fixed or not.