24 lines
575 B
C
Executable File
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);
|