Editar

Compartilhar via


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, [Runtime::InteropServices::Out] UnityEngine::Bounds % bounds);
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

An AABB in world space around all the points.

Returns

True if bounds were calculated, if zero points are present bounds will not be calculated.

Applies to