@graphty/layout / positions / fromPositionColumn
Function: fromPositionColumn()
fromPositionColumn(
column,dim,scale,center,out?):F32
Defined in: positions.ts:98
The inverse of toPositionColumn: layout-unit dim-stride positions from the scene column, (v - center[k]) / scale. Seeds pos for a re-run of a layout from the current scene positions.
Parameters
column
F32
the stride-3 scene-unit column
dim
2 | 3
components per output row
scale
number
scene units per layout unit
center
ArrayLike<number> | null
the scene-unit centre (missing components are 0), or null for the origin
out?
F32
the array to write into (at least dim * n long); a new one when absent
Returns
F32
the layout-unit positions