Method Average
Average(IList<Vector2>, IList<int>)
Calculates and returns the average of a Vector2 array.
Declaration
public static Vector2 Average(IList<Vector2> array, IList<int> indexes = null)
Parameters
Type | Name | Description |
---|---|---|
IList<Vector2> | array | The array to get the average for. |
IList<int> | indexes | Specify a list of points in the vector array to calculate the average from.
If not specified, it uses the entire |
Returns
Type | Description |
---|---|
Vector2 | Average of the whole vertex array or the portion specified in the |
Average(IList<Vector3>, IList<int>)
Calculates and returns the average of the specified Vector3 array.
Declaration
public static Vector3 Average(IList<Vector3> array, IList<int> indexes = null)
Parameters
Type | Name | Description |
---|---|---|
IList<Vector3> | array | The array to get the average for. |
IList<int> | indexes | Specify a list of points in the vector array to calculate the average from.
If not specified, it uses the entire |
Returns
Type | Description |
---|---|
Vector3 | Average of the whole vertex array or the portion specified in the |
Average(IList<Vector4>, IList<int>)
Calculates and returns the average of a Vector4 array.
Declaration
public static Vector4 Average(IList<Vector4> array, IList<int> indexes = null)
Parameters
Type | Name | Description |
---|---|---|
IList<Vector4> | array | The array to get the average for. |
IList<int> | indexes | Specify a list of points in the vector array to calculate the average from.
If not specified, it uses the entire |
Returns
Type | Description |
---|---|
Vector4 | Average of the whole vertex array or the portion specified in the |