2015-10-25 16:07:56 +01:00
|
|
|
/***
|
|
|
|
*
|
|
|
|
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
|
2015-12-27 12:06:55 +01:00
|
|
|
*
|
|
|
|
* This product contains software technology licensed from Id
|
|
|
|
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
|
2015-10-25 16:07:56 +01:00
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
****/
|
|
|
|
#ifndef PLANE_H
|
|
|
|
#define PLANE_H
|
|
|
|
|
|
|
|
class CPlane
|
|
|
|
{
|
|
|
|
public:
|
2015-12-27 12:06:55 +01:00
|
|
|
CPlane(void);
|
2015-10-25 16:07:56 +01:00
|
|
|
|
2015-12-27 12:06:55 +01:00
|
|
|
public:
|
|
|
|
void InitializePlane(const Vector &vecNormal, const Vector &vecPoint);
|
|
|
|
BOOL PointInFront(const Vector &vecPoint);
|
2015-10-25 16:07:56 +01:00
|
|
|
|
2015-12-27 12:06:55 +01:00
|
|
|
public:
|
|
|
|
Vector m_vecNormal;
|
|
|
|
float m_flDist;
|
|
|
|
BOOL m_fInitialized;
|
2015-10-25 16:07:56 +01:00
|
|
|
};
|
|
|
|
|
2015-12-27 12:06:55 +01:00
|
|
|
#endif
|