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

◆ cell_center()

glm::vec3 MayaFlux::Kinesis::Lattice3D::cell_center ( const glm::uvec3 &  c) const
inlinenoexcept

World position of a cell's centre.

Parameters
cCell coordinate.

Definition at line 70 of file Lattice.hpp.

71 {
72 return bounds.min + (glm::vec3(c) + 0.5F) * cell_size();
73 }
glm::vec3 cell_size() const noexcept
Edge length of one cell along each axis.
Definition Lattice.hpp:30
AABB3D bounds
Continuous extent subdivided.
Definition Lattice.hpp:27

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

Referenced by MayaFlux::Buffers::VolumeGridBuffer::accumulate(), and MayaFlux::Buffers::VolumeGridBuffer::seed().

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