17 if ( fDotProduct > 0.0f && fDotProduct <= a_fSphereRadius )
24 return ACos( fDotProduct ) <= a_fConeFOV;
Core math utilities for the Toshi engine.
3D vector implementation for the Toshi engine
#define TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_END
TBOOL ConeVsSphere(const TVector4 &a_rvConePosition, const TVector4 &a_rvConeDirection, float a_fConeFOV, float a_fSphereRadius, const TVector4 &a_rvSpherePosition)
TFORCEINLINE void Clip(T &rVal, const T &Min, const T &Max)
TFORCEINLINE TFLOAT ACos(TFLOAT fVal)
static constexpr TFLOAT DotProduct(const TVector3 &vec1, const TVector3 &vec2)
constexpr TBOOL isNormalised(TFLOAT fVal=0.05f) const