Editar

Compartir a través de


VectorExtensions.Median Method

Definition

Overloads

Median(IEnumerable<Vector3>)

Given a collection of 3D vectors, calculate the medians for each vector component.

Median(IEnumerable<Vector2>)

Given a collection of 2D vectors, calculate the medians for each vector component.

Median(ICollection<Vector2>)

Given a collection of 2D vectors, calculate the medians for each vector component.

Median(ICollection<Vector3>)

Given a collection of 3D vectors, calculate the medians for each vector component.

Median(IEnumerable<Vector3>)

Given a collection of 3D vectors, calculate the medians for each vector component.

public:
[System::Runtime::CompilerServices::Extension]
 static UnityEngine::Vector3 Median(System::Collections::Generic::IEnumerable<UnityEngine::Vector3> ^ vectors);
public static UnityEngine.Vector3 Median (this System.Collections.Generic.IEnumerable<UnityEngine.Vector3> vectors);
static member Median : seq<UnityEngine.Vector3> -> UnityEngine.Vector3
<Extension()>
Public Function Median (vectors As IEnumerable(Of Vector3)) As Vector3

Parameters

vectors
IEnumerable<UnityEngine.Vector3>

The collection of 3D vectors used when calculating the component-wise median.

Returns

UnityEngine.Vector3

A 3D vector containing medians for all vector components.

Applies to

Median(IEnumerable<Vector2>)

Given a collection of 2D vectors, calculate the medians for each vector component.

public:
[System::Runtime::CompilerServices::Extension]
 static UnityEngine::Vector2 Median(System::Collections::Generic::IEnumerable<UnityEngine::Vector2> ^ vectors);
public static UnityEngine.Vector2 Median (this System.Collections.Generic.IEnumerable<UnityEngine.Vector2> vectors);
static member Median : seq<UnityEngine.Vector2> -> UnityEngine.Vector2
<Extension()>
Public Function Median (vectors As IEnumerable(Of Vector2)) As Vector2

Parameters

vectors
IEnumerable<UnityEngine.Vector2>

The collection of 2D vectors used when calculating the component-wise median.

Returns

UnityEngine.Vector2

A 2D vector containing medians for all vector components.

Applies to

Median(ICollection<Vector2>)

Given a collection of 2D vectors, calculate the medians for each vector component.

public:
[System::Runtime::CompilerServices::Extension]
 static UnityEngine::Vector2 Median(System::Collections::Generic::ICollection<UnityEngine::Vector2> ^ vectors);
public static UnityEngine.Vector2 Median (this System.Collections.Generic.ICollection<UnityEngine.Vector2> vectors);
static member Median : System.Collections.Generic.ICollection<UnityEngine.Vector2> -> UnityEngine.Vector2
<Extension()>
Public Function Median (vectors As ICollection(Of Vector2)) As Vector2

Parameters

vectors
ICollection<UnityEngine.Vector2>

The collection of 2D vectors used when calculating the component-wise median.

Returns

UnityEngine.Vector2

A 2D vector containing medians for all vector components.

Applies to

Median(ICollection<Vector3>)

Given a collection of 3D vectors, calculate the medians for each vector component.

public:
[System::Runtime::CompilerServices::Extension]
 static UnityEngine::Vector3 Median(System::Collections::Generic::ICollection<UnityEngine::Vector3> ^ vectors);
public static UnityEngine.Vector3 Median (this System.Collections.Generic.ICollection<UnityEngine.Vector3> vectors);
static member Median : System.Collections.Generic.ICollection<UnityEngine.Vector3> -> UnityEngine.Vector3
<Extension()>
Public Function Median (vectors As ICollection(Of Vector3)) As Vector3

Parameters

vectors
ICollection<UnityEngine.Vector3>

The collection of 3D vectors used when calculating the component-wise median.

Returns

UnityEngine.Vector3

A 3D vector containing medians for all vector components.

Applies to