text: //Copyright (c) 2021 sselecirPyM
  //This file is part of RTU Game.
  //
  //RTU Game is free software : you can redistribute itand /or modify
  //it under the terms of the GNU General Public License as published by
  //the Free Software Foundation, either version 3 of the License, or
  //(at your option) any later version.
  //
  //RTU Game is distributed in the hope that it will be useful,
  //but WITHOUT ANY WARRANTY; without even the implied warranty of
  //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
  //GNU General Public License for more details.
  //
  //You should have received a copy of the GNU General Public License
  //along with RTU Game.If not, see < https://www.gnu.org/licenses/>.
  #pragma once
  #include <DirectXCollision.h>
  class FrustumCull
  {
  public:
  	void Init(DirectX::CXMMATRIX view,DirectX::CXMMATRIX projection);
  	bool SphereIntersects(DirectX::FXMVECTOR position, float radius);
  	bool BoxIntersects(DirectX::FXMVECTOR middle,DirectX::XMFLOAT3 halflwh);
  	bool BoxContains(DirectX::FXMVECTOR middle,DirectX::XMFLOAT3 halflwh);
  	DirectX::BoundingFrustum m_frustum;
  };
  
  