public void GetDistance(ref Vector2D point, out Scalar result) { result = Scalar.MaxValue; Scalar temp; for (int index = 0; index < polygons.Length; ++index) { BoundingPolygon.GetDistance(polygons[index], ref point, out temp); if (temp < result) { result = temp; } } }
public override void GetDistance(ref Vector2D point, out Scalar result) { BoundingPolygon.GetDistance(Vertexes, ref point, out result); }