Function: matrixFromCamera()
matrixFromCamera(
state
,viewportDimensions
,graphDimensions
,padding
,inverse
?):Float32Array
Defined in: sigma/src/utils/coordinates.ts:34
Function returning a matrix from the current state of the camera.
Parameters
state
CameraState
viewportDimensions
height
number
width
number
graphDimensions
height
number
width
number
padding
number
inverse?
boolean
Returns
Float32Array