/// <summary> /// Minimum Width Algorithm /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void minWidthButton_Click(object sender, EventArgs e) { cb = new MinimumWidthAlgorithm(this); cb.StartAlgorithm(); }
/// <summary> /// Smllest Perimeter /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void minimumPermButton_Click(object sender, EventArgs e) { cb = new MinimumPerimeterAlgorithm(this); cb.StartAlgorithm(); }
/// <summary> /// Intersection of two convex polygons /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void intersectionButton_Click(object sender, EventArgs e) { cb = new IntersectionAlgorithm(this); cb.StartAlgorithm(); }
/// <summary> /// Merge the convex hull of the two polygons /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void mergeConvexHullButton_Click(object sender, EventArgs e) { cb = new ConvexHullAlgorithm(this); cb.StartAlgorithm(); }
/// <summary> /// Smallest Rectangle event handler /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void smallestRectangleButton_Click(object sender, EventArgs e) { cb = new MinimumAreaAlgorithm(this); cb.StartAlgorithm(); }
/// <summary> /// Computes the maximum diameter in O(n) time using Shamox rotating calipers /// Use max and min Y values as first pair of support lines /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void maxDiameterButton_Click(object sender, EventArgs e) { cb = new DiametersAlgorithm(this); cb.StartAlgorithm(); }
/// <summary> /// Max distance between two two polygons /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void maxDist2PolyButton_Click(object sender, EventArgs e) { cb = new MaxDistance2PAlgorithm(this); cb.StartAlgorithm(); }