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
  • C#
  • VB
  • F#
public static BoundingBox CreateFromPoints(
	Vector3[] points, 
	int index, 
	int count

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: Microsoft.Xna.Framework.Vector3[]
The array of Vector3 instances defining the point cloud to bound
Type: System.Int32
The base index to start iterating from
Type: System.Int32
The number of points to iterate

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