Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Frustum.h
Package: QuakeBsp.rar [view]
Upload User: cxh8989
Upload Date: 2021-01-22
Package Size: 2544k
Code Size: 1k
Category:
Shot Game
Development Platform:
Visual C++
- #ifndef _FRUSTUM_H
- #define _FRUSTUM_H
- #include "main.h"
- /** 平锥体类 */
- class CFrustum {
- public:
- void CalculateFrustum();
- /** 判断一点是否在平头体内 */
- bool PointInFrustum(float x, float y, float z);
- bool SphereInFrustum(float x, float y, float z, float radius);
- bool CubeInFrustum(float x, float y, float z, float size);
- bool BoxInFrustum(float x, float y, float z, float sizeX, float sizeY, float sizeZ);
- private:
- /** 组成平头体的六个平面方程系数 */
- float m_Frustum[6][4];
- };
- class CDebug
- {
- public:
- void AddDebugLine(CVector3 vPoint1, CVector3 vPoint2);
- void AddDebugBox(CVector3 vCenter, float width, float height, float depth);
- void RenderDebugLines();
- void Clear();
- private:
- vector<CVector3> m_vLines;
- };
- #endif