Skip to content

Commit df20ff2

Browse files
[common] Renaming function normalize to pglNormalize
1 parent b5ed2e4 commit df20ff2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openpgl/include/openpgl/common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ inline void pglBox3f(pgl_box3f &box, const float lx, const float ly, const float
199199
pglVec3f(box.upper, ux, uy, uz);
200200
}
201201

202-
inline pgl_vec3f normalize(pgl_vec3f n)
202+
inline pgl_vec3f pglNormalize(pgl_vec3f n)
203203
{
204204
const float f = 1.f / std::sqrt(n.x * n.x + n.y * n.y + n.z * n.z);
205205
return {n.x * f, n.y * f, n.z * f};

openpgl/include/openpgl/compression.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ inline pgl_vec3f dequantize_direction(const uint32_t word)
116116
pgl_vec2f b = {std::abs(n.y), std::abs(n.x)};
117117
n = {(1.f - b.x) * signNotZero.x, (1.f - b.y) * signNotZero.y};
118118
}
119-
return normalize({n.x, n.y, 1.0f - nl1});
119+
return pglNormalize({n.x, n.y, 1.0f - nl1});
120120

121121
////////////////////////////////////////////////////////////////////////
122122
}

0 commit comments

Comments
 (0)