Language
Edit

BoundsExtensions.GetPointsBounds(List<Vector3>, Bounds) Method

Definition

Method to get bounds from a collection of points.

public static bool GetPointsBounds(System.Collections.Generic.List<UnityEngine.Vector3> points, out UnityEngine.Bounds bounds);
static member GetPointsBounds : System.Collections.Generic.List<UnityEngine.Vector3> * Bounds -> bool
Public Function GetPointsBounds (points As List(Of Vector3), ByRef bounds As Bounds) As Boolean

Parameters

points
List<UnityEngine.Vector3>

The points to construct a bounds around.

bounds
UnityEngine.Bounds

A bounds in world space around all the points.

Returns

true if bounds were calculated, otherwise false.

Remarks

If zero points are present, bounds will not be calculated.

Applies to