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

◆ cell_center()

glm::vec2 MayaFlux::Kinesis::Lattice2D::cell_center ( const glm::uvec2 &  c) const
inlinenoexcept

Position of a cell's centre.

Parameters
cCell coordinate.

Definition at line 169 of file Lattice.hpp.

170 {
171 return bounds.min + (glm::vec2(c) + 0.5F) * cell_size();
172 }
AABB2D bounds
Continuous extent subdivided.
Definition Lattice.hpp:127
glm::vec2 cell_size() const noexcept
Edge length of one cell along each axis.
Definition Lattice.hpp:130

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

+ Here is the call graph for this function: