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

◆ cell_size()

glm::vec2 MayaFlux::Kinesis::Lattice2D::cell_size ( ) const
inlinenoexcept

Edge length of one cell along each axis.

Definition at line 130 of file Lattice.hpp.

131 {
132 return glm::vec2(bounds.width(), bounds.height()) / glm::vec2(resolution);
133 }
float height() const noexcept
Definition Bounds.hpp:38
float width() const noexcept
Definition Bounds.hpp:37
AABB2D bounds
Continuous extent subdivided.
Definition Lattice.hpp:127
glm::uvec2 resolution
Cell count per axis. Zero on either axis is invalid.
Definition Lattice.hpp:126

References bounds, MayaFlux::Kinesis::AABB2D::height(), resolution, and MayaFlux::Kinesis::AABB2D::width().

Referenced by cell_at(), cell_center(), and corner_position().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: