Rename for_each_voxel to for_each_cell.

This commit is contained in:
King_DuckZ 2018-03-05 10:34:41 +00:00
parent 5bccef1f4f
commit 6861329ab9
4 changed files with 5 additions and 5 deletions

View file

@ -93,7 +93,7 @@ namespace curry {
return true;
};
for_each_voxel_under_segment(
for_each_cell_under_segment(
parFrom + pix_side_offset,
parTo + pix_side_offset,
parObjectSize,

View file

@ -93,7 +93,7 @@ namespace curry {
//see:
//http://stackoverflow.com/questions/24679963/precise-subpixel-line-drawing-algorithm-rasterization-algorithm
void for_each_voxel_under_segment (
void for_each_cell_under_segment (
const vec2f& parFrom,
const vec2f& parTo,
vec2us parObjSize,

View file

@ -30,7 +30,7 @@ namespace curry {
float segment_intersection (const vec2f& parA, const vec2f& parDirA, const vec2f& parB, const vec2f& parDirB);
#endif
void for_each_voxel_under_segment (
void for_each_cell_under_segment (
const vec2f& parFrom,
const vec2f& parTo,
vec2us parObjSize,

View file

@ -25,7 +25,7 @@
#include <vector>
TEST_CASE ("Check that 2D raytracing works", "[raytracing][geometry]") {
using curry::for_each_voxel_under_segment;
using curry::for_each_cell_under_segment;
using curry::vec2us;
using curry::vec2f;
@ -49,7 +49,7 @@ TEST_CASE ("Check that 2D raytracing works", "[raytracing][geometry]") {
{
std::vector<vec2us> diagonal;
for_each_voxel_under_segment (
for_each_cell_under_segment (
vec2f(0.0f, 0.0f), //from
vec2f(639.0f, 639.0f), //to
vec2us(1, 1), //objsize