MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ index()

size_t MayaFlux::Kinesis::Lattice3D::index ( const glm::uvec3 &  c) const
inlinenoexcept

Linear index of a cell, x-major.

Parameters
cCell coordinate. Not bounds-checked.

Definition at line 52 of file Lattice.hpp.

53 {
54 return (static_cast<size_t>(c.z) * resolution.y + c.y) * resolution.x + c.x;
55 }
glm::uvec3 resolution
Cell count per axis. Zero on any axis is invalid.
Definition Lattice.hpp:26

References resolution.