2016-06-04 15:24:23 +02:00
|
|
|
/***
|
|
|
|
*
|
|
|
|
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
|
2016-07-31 15:48:50 +02:00
|
|
|
*
|
2016-06-04 15:24:23 +02:00
|
|
|
* This product contains software technology licensed from Id
|
|
|
|
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
|
|
|
|
* All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use, distribution, and modification of this source code and/or resulting
|
|
|
|
* object code is restricted to non-commercial enhancements to products from
|
|
|
|
* Valve LLC. All other use, distribution, or modification is prohibited
|
|
|
|
* without written permission from Valve LLC.
|
|
|
|
*
|
|
|
|
****/
|
|
|
|
//=========================================================
|
|
|
|
// Plane
|
|
|
|
//=========================================================
|
2021-06-20 00:53:07 +02:00
|
|
|
#if !defined(PLANE_H)
|
2017-12-10 18:19:34 +01:00
|
|
|
#define PLANE_H
|
|
|
|
|
2016-07-31 15:48:50 +02:00
|
|
|
class CPlane
|
2016-06-04 15:24:23 +02:00
|
|
|
{
|
|
|
|
public:
|
2016-07-31 15:48:50 +02:00
|
|
|
CPlane( void );
|
2016-06-04 15:24:23 +02:00
|
|
|
|
|
|
|
//=========================================================
|
|
|
|
// InitializePlane - Takes a normal for the plane and a
|
|
|
|
// point on the plane and
|
|
|
|
//=========================================================
|
|
|
|
void InitializePlane ( const Vector &vecNormal, const Vector &vecPoint );
|
|
|
|
|
|
|
|
//=========================================================
|
|
|
|
// PointInFront - determines whether the given vector is
|
|
|
|
// in front of the plane.
|
|
|
|
//=========================================================
|
2016-07-31 15:48:50 +02:00
|
|
|
BOOL PointInFront( const Vector &vecPoint );
|
2016-06-04 15:24:23 +02:00
|
|
|
|
2016-07-31 15:48:50 +02:00
|
|
|
Vector m_vecNormal;
|
|
|
|
float m_flDist;
|
|
|
|
BOOL m_fInitialized;
|
2016-06-04 15:24:23 +02:00
|
|
|
};
|
|
|
|
#endif // PLANE_H
|