Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
malytomas committed Oct 7, 2024
1 parent 9be4c71 commit 41cc9a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sources/include/cage-core/geometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace cage
struct CAGE_CORE_API Triangle
{
// data
Vec3 vertices[3]{ Vec3::Nan(), Vec3::Nan(), Vec3::Nan() };
Vec3 vertices[3] = { Vec3::Nan(), Vec3::Nan(), Vec3::Nan() };

// constructors
constexpr Triangle() {}
Expand Down Expand Up @@ -225,12 +225,12 @@ namespace cage
bool empty() const { return !valid(); }
};

// note: some intersection tests with frustums are conservative
// note: some intersection tests with frustums are inexact (conservative)
struct CAGE_CORE_API Frustum
{
// data
Mat4 viewProj;
Vec4 planes[6];
Mat4 viewProj = Mat4::Nan();
Vec4 planes[6] = { Vec4::Nan(), Vec4::Nan(), Vec4::Nan(), Vec4::Nan(), Vec4::Nan(), Vec4::Nan() };

// constructor
constexpr Frustum() {}
Expand Down

0 comments on commit 41cc9a5

Please sign in to comment.