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

◆ corner_position()

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

Position of a lattice corner.

Parameters
cCorner coordinate, valid up to resolution inclusive.

Definition at line 178 of file Lattice.hpp.

179 {
180 return bounds.min + glm::vec2(c) * cell_size();
181 }
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: