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

◆ corner_position()

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

World position of a lattice corner.

Parameters
cCorner coordinate, valid up to resolution inclusive.

Definition at line 79 of file Lattice.hpp.

80 {
81 return bounds.min + glm::vec3(c) * cell_size();
82 }
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.

+ Here is the call graph for this function: