Box2DX.Collision.Simplex.GetMetric C# (CSharp) Method

GetMetric() private method

private GetMetric ( ) : float
return float
		internal float GetMetric()
		{
			switch (_count)
			{
				case 0:
#if DEBUG
					Box2DXDebug.Assert(false);
#endif
					return 0.0f;

				case 1:
					return 0.0f;

				case 2:
					return (_v1.w - _v2.w).magnitude;

				case 3:
					return (_v2.w - _v1.w).Cross(_v3.w - _v1.w);

				default:
#if DEBUG
					Box2DXDebug.Assert(false);
#endif
					return 0.0f;
			}
		}