Files
qt5-legatus-legacy/Lts/Services/CentralEffectSimulation/Plugins/Explosions/isInCone.h
T
2026-08-13 18:33:10 +02:00

24 lines
575 B
C
Executable File

/**
* Visibility determination
* $Id$
* $HeadURL$
* $Author$
* Created by Gerlinde Rudolphus, ESZS, 2016-04-14
*/
#include <QVector3D>
/**
* \brief Jira GUEZE-2540: Methode zur Sichtbarkeitsbestimmung Stufe 1
* Funktion isInCone
*
* \param p1 Scheitelpunkt Kegel
* \param p2 Punkt auf Achseim Kegel
* \param angle Halber Oeffnungswinkel
* \param ptt Testpunkt
*
* \return b 1, falls Testpunkt im Kegel
* 0, sonst
*/
bool isInCone(const QVector3D top, const QVector3D bottom, const float angle, const QVector3D pointToTest);