Box2DX.Collision.PolygonShape.UpdateSweepRadius C# (CSharp) Method

UpdateSweepRadius() private method

private UpdateSweepRadius ( Vec2 center ) : void
center Box2DX.Common.Vec2
return void
		internal override void UpdateSweepRadius(Vec2 center)
		{
			// Update the sweep radius (maximum radius) as measured from
			// a local center point.
			_sweepRadius = 0.0f;
			for (int i = 0; i < _vertexCount; ++i)
			{
				Vec2 d = _coreVertices[i] - center;
				_sweepRadius = Common.Math.Max(_sweepRadius, d.Length());
			}
		}