Try to calculate the normalized resulting median Vector3D for the angles between
each pair of the specified vectors.
In the simple case that just two Vector3D are given, a real median is calculated on
the plane defined by these two, else an attempt is made to calculate a normalized sum of all
the Vector3D. In the latter case, parallel Vector3D having opposite
directions may change the expected direction for the resulting median.
Namespace: Ico.Windows.Media.Media3DAssembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)
Syntax
C# |
---|
public static Vector3D CalculateMedian(
Vector3D[] vectors
) |
Visual Basic |
---|
Public Shared Function CalculateMedian ( _
vectors As Vector3D() _
) As Vector3D |
JScript |
---|
public static function CalculateMedian(
vectors : Vector3D[]
) : Vector3D |
Parameters
- vectors
- Type: array<System.Windows.Media.Media3D..::..Vector3D>[]()[][]
array of Vector3D which to calculate the median for
Return Value
Returns a normalized
Vector3D representing the median
See Also