public void Problem16() { var pt1 = new Point(-1, 2); var ps1 = new PointSymbol(pt1); var pt2 = new Point(5, 8); var ps2 = new PointSymbol(pt2); var pt3 = new Point(2, 4); var midPoint = new PointSymbol(pt3); TraceInstructionalDesign.FromPointsToMidPoint(ps1, ps2, midPoint); }
public static object Unify(PointSymbol pt1, PointSymbol pt2, EqGoal goal = null) { //point identify check if (pt1.Equals(pt2)) { return(null); } //Mid-point build process if (pt1.Shape.Concrete && pt2.Shape.Concrete) { var point1 = pt1.Shape as Point; var point2 = pt2.Shape as Point; Debug.Assert(point1 != null); Debug.Assert(point2 != null); var midPoint = PointGenerationRule.GenerateMidPoint(point1, point2); TraceInstructionalDesign.FromPointsToMidPoint(pt1, pt2, midPoint); return(midPoint); } return(null); }