Returns the matrix that draws a local frame around origin on the map: x runs east, y north and z
up from the origin, in metres, scaled as LocalFrameOptions sets.
Call it in a custom layer's render, with options.defaultProjectionData.mainMatrix.
It composes in double precision, so a street-scale scene doesn't jitter. Copy the result into a
three.js camera's projectionMatrix, or into a Float32Array for a WebGL uniform.
It works in the mercator projection. In the globe projection, the map's matrix takes other coordinates.
Parameters
mainMatrix: ArrayLike<number>
The map's defaultProjectionData.mainMatrix for this frame.
origin: [number,number]
The frame's origin, [longitude, latitude]. Its height is altitude.
Returns the matrix that draws a local frame around
originon the map: x runs east, y north and z up from the origin, in metres, scaled as LocalFrameOptions sets.render, withoptions.defaultProjectionData.mainMatrix.projectionMatrix, or into aFloat32Arrayfor a WebGL uniform.