latticeVectors
megane-viewer / latticeVectors
Function: latticeVectors()
latticeVectors(
box):LatticeVectors|null
Defined in: renderer/cameraOrientation.ts:132
Read the lattice vectors out of a snapshot's row-major 3×3 box.
Returns null when there is no usable cell: a missing or short array, an all-zero box (how parsers mark "no cell"), a zero-length vector, or a (near-)degenerate triple whose volume is zero. Callers substitute the Cartesian frame in that case.
Parameters
box
ArrayLike<number> | null | undefined
Returns
LatticeVectors | null