Skip to content

Commit 41cc9a5

Browse files
committed
fix
1 parent 9be4c71 commit 41cc9a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sources/include/cage-core/geometry.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace cage
5151
struct CAGE_CORE_API Triangle
5252
{
5353
// data
54-
Vec3 vertices[3]{ Vec3::Nan(), Vec3::Nan(), Vec3::Nan() };
54+
Vec3 vertices[3] = { Vec3::Nan(), Vec3::Nan(), Vec3::Nan() };
5555

5656
// constructors
5757
constexpr Triangle() {}
@@ -225,12 +225,12 @@ namespace cage
225225
bool empty() const { return !valid(); }
226226
};
227227

228-
// note: some intersection tests with frustums are conservative
228+
// note: some intersection tests with frustums are inexact (conservative)
229229
struct CAGE_CORE_API Frustum
230230
{
231231
// data
232-
Mat4 viewProj;
233-
Vec4 planes[6];
232+
Mat4 viewProj = Mat4::Nan();
233+
Vec4 planes[6] = { Vec4::Nan(), Vec4::Nan(), Vec4::Nan(), Vec4::Nan(), Vec4::Nan(), Vec4::Nan() };
234234

235235
// constructor
236236
constexpr Frustum() {}

0 commit comments

Comments
 (0)