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

◆ cell_center()

double MayaFlux::Kinesis::Lattice1D::cell_center ( uint32_t  c) const
inlinenoexcept

Position of a cell's centre.

Parameters
cCell coordinate.

Definition at line 271 of file Lattice.hpp.

272 {
273 return bounds.min + (static_cast<double>(c) + 0.5) * cell_size();
274 }
double cell_size() const noexcept
Width of one cell.
Definition Lattice.hpp:232
AABB1D bounds
Continuous extent subdivided.
Definition Lattice.hpp:229

References bounds, cell_size(), and MayaFlux::Kinesis::AABB1D::min.

+ Here is the call graph for this function: