class csFrustrum A frustrum
A frustrum. This consist of a center point (origin), a frustrum polygon in 3D space (relative to center point) and a plane. The planes which go through the center and every edge of the polygon form the frustrum. The plane is the back plane of the frustrum. It is also possible to have an infinite frustrum in which case the polygon will be NULL (not specified). The back plane can also be NULL.
Returns a new frustrum which exactly covers the intersection
of the polygon with the frustrum (i.e. the smallest frustrum
which is part of this frustrum and which 'sees' exactly
the same of the given polygon as this frustrum).
This function returns NULL if there is no intersection.
Note that the frustrum polygon of the returned csFrustrum is
guaranteed to be coplanar with the given polygon.
bool mirrored
csFrustrum(csVector3& o)
csFrustrum(csVector3& o, csVector3* verts, int num_verts, csPlane* backp = NULL)
csFrustrum(const csFrustrum ©)
virtual ~csFrustrum()
void SetOrigin(csVector3& o)
csVector3& GetOrigin()
void SetMirrored(bool m)
bool IsMirrored()
void SetBackPlane(csPlane& plane)
csPlane* GetBackPlane()
void RemoveBackPlane()
void AddVertex(const csVector3& v)
int GetNumVertices()
csVector3& GetVertex(int idx)
csVector3* GetVertices()
void Transform(csTransform* trans)
void ClipToPlane(csVector3& v1, csVector3& v2)
void ClipPolyToPlane(csPlane* plane)
csFrustrum* Intersect(const csFrustrum& other)
csFrustrum* Intersect(csVector3* poly, int num)
bool Contains(const csVector3& point)
bool IsEmpty()
bool IsInfinite()
bool IsWide()
void MakeInfinite()
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de