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

◆ index()

size_t MayaFlux::Kinesis::Lattice2D::index ( const glm::uvec2 &  c) const
inlinenoexcept

Linear index of a cell, x-major.

Parameters
cCell coordinate. Not bounds-checked.

Definition at line 151 of file Lattice.hpp.

152 {
153 return static_cast<size_t>(c.y) * resolution.x + c.x;
154 }
glm::uvec2 resolution
Cell count per axis. Zero on either axis is invalid.
Definition Lattice.hpp:126

References resolution.