BoundingBox.CreateFromPoints Method (Microsoft.Xna.Framework)

Create a bounding box from the given list of points.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.271)
  • C#
  • VB
  • F#
public static BoundingBox CreateFromPoints(
	IEnumerable<Vector3> points
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

points
Type: IEnumerable<Vector3>
The list of Vector3 instances defining the point cloud to bound

Return Value

Type: Microsoft.Xna.Framework.BoundingBox
A bounding box that encapsulates the given point cloud.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web