![]() |
Simulant
21.12-553
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
|
Public Member Functions | |
void | build (const Mat4 *modelview_projection) |
std::vector< Vec3 > | near_corners () const |
Returns the near 4 corners of the frustum. | |
std::vector< Vec3 > | far_corners () const |
Returns the far 4 corners of the frustum. | |
bool | contains_point (const Vec3 &point) const |
Returns true if the frustum contains point. | |
bool | intersects_sphere (const Vec3 &pos, const float diameter) |
bool | intersects_aabb (const AABB &box) const |
bool | intersects_cube (const Vec3 ¢re, float size) const |
bool | initialized () const |
float | near_height () const |
float | far_height () const |
float | near_width () const |
float | far_width () const |
float | depth () const |
Plane | plane (FrustumPlane p) const |
Vec3 | direction () const |
Vec3 | up () const |
Vec3 | right () const |
float | width_at_distance (float distance) const |
float | height_at_distance (float distance) const |
Degrees | field_of_view () const |
float | aspect_ratio () const |