TombEngine/TR5Main/Renderer/Frustum.h
TokyoSU b615a98c46 (Broken) Deleted Global Folder
- No more enums.h, constants.h, macro.h, etc...
- moved all structure in types.h to there respective file.
2020-05-30 15:55:23 +02:00

19 lines
No EOL
413 B
C++

#pragma once
class Frustum
{
public:
Frustum() = default;
void Update(const Matrix& view, const Matrix& projection);
bool PointInFrustum(const Vector3& position) const;
bool SphereInFrustum(const Vector3& position, float radius) const;
bool AABBInFrustum(const Vector3& min, const Vector3& max) const;
private:
void NormalizePlane(int32_t side);
std::array<std::array<float, 4>, 6> m_frustum = {};
};