Export (0) Print
Expand All

BoundingFrustum Class

Defines a frustum and helps determine whether forms intersect with it.

System.Object
  Microsoft.Xna.Framework.BoundingFrustum

Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)

public class BoundingFrustum

The BoundingFrustum type exposes the following members.

  NameDescription
Public methodBoundingFrustumCreates a new instance of BoundingFrustum.
Top

  NameDescription
Public propertyBottomGets the bottom plane of the BoundingFrustum.
Public propertyFarGets the far plane of the BoundingFrustum.
Public propertyLeftGets the left plane of the BoundingFrustum.
Public propertyMatrixGets or sets the Matrix that describes this bounding frustum.
Public propertyNearGets the near plane of the BoundingFrustum.
Public propertyRightGets the right plane of the BoundingFrustum.
Public propertyTopGets the top plane of the BoundingFrustum.
Top

  NameDescription
Public methodContains(BoundingBox)Checks whether the current BoundingFrustum contains the specified BoundingBox.
Public methodContains(BoundingFrustum)Checks whether the current BoundingFrustum contains the specified BoundingFrustum.
Public methodContains(BoundingSphere)Checks whether the current BoundingFrustum contains the specified BoundingSphere.
Public methodContains(Vector3)Checks whether the current BoundingFrustum contains the specified point.
Public methodContains(BoundingBox, ContainmentType)Checks whether the current BoundingFrustum contains the specified BoundingBox.
Public methodContains(BoundingSphere, ContainmentType)Checks whether the current BoundingFrustum contains the specified BoundingSphere.
Public methodContains(Vector3, ContainmentType)Checks whether the current BoundingFrustum contains the specified point.
Public methodEquals(Object)Determines whether the specified Object is equal to the BoundingFrustum. (Overrides Object.Equals(Object).)
Public methodEquals(BoundingFrustum)Determines whether the specified BoundingFrustum is equal to the current BoundingFrustum.
Public methodGetCorners()Gets an array of points that make up the corners of the BoundingFrustum.
Public methodGetCorners(Vector3[])Gets an array of points that make up the corners of the BoundingFrustum.
Public methodGetHashCodeGets the hash code for this instance. (Overrides Object.GetHashCode().)
Public methodIntersects(BoundingBox)Checks whether the current BoundingFrustum intersects the specified BoundingBox.
Public methodIntersects(BoundingFrustum)Checks whether the current BoundingFrustum intersects the specified BoundingFrustum.
Public methodIntersects(BoundingSphere)Checks whether the current BoundingFrustum intersects the specified BoundingSphere.
Public methodIntersects(Plane)Checks whether the current BoundingFrustum intersects the specified Plane.
Public methodIntersects(Ray)Checks whether the current BoundingFrustum intersects the specified Ray.
Public methodIntersects(BoundingBox, Boolean)Checks whether the current BoundingFrustum intersects a BoundingBox.
Public methodIntersects(BoundingSphere, Boolean)Checks whether the current BoundingFrustum intersects a BoundingSphere.
Public methodIntersects(Plane, PlaneIntersectionType)Checks whether the current BoundingFrustum intersects a Plane.
Public methodIntersects(Ray, Nullable<Single>)Checks whether the current BoundingFrustum intersects a Ray.
Public methodToStringReturns a String that represents the current BoundingFrustum. (Overrides Object.ToString().)
Top

  NameDescription
Public operatorStatic memberEqualityDetermines whether two instances of BoundingFrustum are equal.
Public operatorStatic memberInequalityDetermines whether two instances of BoundingFrustum are not equal.
Top

  NameDescription
Public fieldStatic memberCornerCountSpecifies the total number of corners (8) in the BoundingFrustum.
Top

A frustum in computer graphics is generally a volume of 3D space, defined as the part of a rectangular pyramid that lies between two planes perpendicular to its center line. A frustum is often used to represent what a "camera" sees in your 3D space.

The BoundingFrustum class allows you to define a bounding frustum using a combined matrix that is generally the product of a view matrix and a projection matrix.

You can query a BoundingFrustum object for any one of its bounding planes, for its corners, and for whether it intersects with a given object. Since objects that don't intersect with your view frustrum generally don't need to be rendered, culling them quickly can save you a lot of rendering time.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft