// David Eberly, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2020 // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // Version: 4.0.2019.08.13 #pragma once #include #include #include namespace WwiseGTE { template class TIQuery, Frustum3> { public: struct Result { bool intersect; }; Result operator()(Sphere3 const& sphere, Frustum3 const& frustum) { Result result; DCPQuery, Frustum3> vfQuery; Real distance = vfQuery(sphere.center, frustum).distance; result.intersect = (distance <= sphere.radius); return result; } }; }