Represents either an orthographic or a perspective viewing frustum.
![]() | Represents either an orthographic or a perspective viewing frustum. |
![]() | Horizontal field-of-view, in radians. This field is only valid if type == PerspectiveFrustum. |
![]() | The width of the orthographic frustum. This field is only valid if type == OrthographicFrustum. |
![]() | Vertical field-of-view, in radians. This field is only valid if type == PerspectiveFrustum. |
![]() | The height of the orthographic frustum. This field is only valid if type == OrthographicFrustum. |
![]() | The default constructor creates an uninitialized Frustum object. |
![]() | Sets the type of this Frustum. |
![]() | Sets the depth clip distances of this Frustum. |
![]() | Specifies the full coordinate space of this Frustum in one call. |
![]() | Sets the world-space position of this Frustum. |
![]() | Sets the world-space direction the Frustum eye is looking towards. |
![]() | Sets the world-space camera up direction vector of this Frustum. |
![]() | Makes this Frustum use a perspective projection formula with the given FOV parameters. |
![]() | Makes this Frustum use an orthographic projection formula with the given FOV parameters. |
![]() | Returns the handedness of the projection formula used by this Frustum. |
![]() | Returns the type of the projection formula used by this Frustum. |
![]() | Returns the convention of the post-projective space used by this Frustum. |
![]() | Returns the world-space position of this Frustum. |
![]() | Returns the world-space camera look-at direction of this Frustum. |
![]() | Returns the world-space camera up direction of this Frustum. |
![]() | Returns the distance from the Frustum eye to the near clip plane. |
![]() | Returns the distance from the Frustum eye to the far clip plane. |
![]() | Returns the horizontal field-of-view used by this Frustum, in radians. |
![]() | Returns the vertical field-of-view used by this Frustum, in radians. |
![]() | Returns the world-space width of this Frustum. |
![]() | Returns the world-space height of this Frustum. |
![]() | Returns the number of line segment edges that this Frustum is made up of, which is always 12. |
![]() | Returns the aspect ratio of the view rectangle on the near plane. |
![]() | Makes this Frustum use a perspective projection formula with the given horizontal FOV parameter and aspect ratio. |
![]() | Makes this Frustum use a perspective projection formula with the given vertical FOV parameter and aspect ratio. |
![]() | Computes the direction vector that points logically to the right-hand side of the Frustum. |
![]() | Computes the plane equation of the near plane of this Frustum. |
![]() | Computes the width of the near plane quad in world space units. |
![]() | Computes the height of the near plane quad in world space units. |
![]() | Computes the plane equation of the far plane of this Frustum. |
![]() | Returns the plane equation of the specified side of this Frustum. |
![]() | Returns the specified plane of this frustum. |
![]() | Returns all six planes of this Frustum. |
![]() | |
![]() | Returns an edge of this Frustum. |
![]() | Generates one of the eight corner points of this Frustum. |
![]() | Returns all eight corner points of this array. |
![]() | Quickly returns an arbitrary point inside this Frustum. Used in GJK intersection test. |
![]() | Computes an extreme point of this Frustum in the given direction. |
![]() | Projects this Frustum onto the given 1D axis direction vector. |
![]() | |
![]() | |
![]() | Sets the pos, front and up members of this frustum from the given world transform. |
![]() | Computes the matrix that transforms from the view space to the world (global) space of this Frustum. |
![]() | |
![]() | Computes the matrix that transforms from the world (global) space to the view space of this Frustum. |
![]() | |
![]() | Computes the matrix that projects from the view space to the projection space of this Frustum. |
![]() | |
![]() | Computes the matrix that transforms from the world (global) space to the projection space of this Frustum. |
![]() | |
![]() | Finds a ray in world space that originates at the eye point and looks in the given direction inside the frustum. |
![]() | Like UnProject, but if the frustum type is PerspectiveFrustum, the ray originates at the near plane, and not at the camera eye point. |
![]() | Returns the world-space line segment of the points that project to the given normalized viewport coordinate (x,y). |
![]() | Returns a point inside this frustum parameterized by three scalar coordinates. |
![]() | Projects the given point onto the near plane of this frustum. |
![]() | Returns a point on the near plane. |
![]() | Returns a point on the far plane. |
![]() | Tests if this Frustum is finite. |
![]() | Computes the volume of this Frustum. |
![]() | Quickly generates a random point inside this Frustum. |
![]() | Generates a uniformly random point inside this Frustum. |
![]() | Moves this Frustum by the given offset vector. |
![]() | Applies a transformation to this Frustum. |
![]() | Returns the tightest AABB that contains this Frustum. |
![]() | Returns the tightest OBB that encloses this Frustum. |
![]() | Converts this Frustum to a Polyhedron. |
![]() | Converts this Frustum to a PBVolume. |
![]() | Tests if the given object is fully contained inside this Frustum. |
![]() | Computes the closest point inside this Frustum to the given point. |
![]() | Computes the distance between this Frustum and the given object. |
![]() | Tests whether this Frustum and the given object intersect. |
![]() | Returns a human-readable representation of this Frustum. Most useful for debugging purposes. |
![]() | |
![]() | Maps a point from the normalized viewport space to the screen space. |
![]() | Maps a point from screen space to normalized viewport space. |