Skip to main content

Function: matrixFromCamera()

matrixFromCamera(state, viewportDimensions, graphDimensions, padding, inverse?): Float32Array

Function returning a matrix from the current state of the camera.

Parameters

state: CameraState

viewportDimensions

viewportDimensions.height: number

viewportDimensions.width: number

graphDimensions

graphDimensions.height?: number

graphDimensions.width?: number

padding?: number

inverse?: boolean

Returns

Float32Array

Defined in

sigma/src/utils/coordinates.ts:34