本文整理汇总了C#中GeometryTutorLib.ConcreteAST.Point类的典型用法代码示例。如果您正苦于以下问题:C# Point类的具体用法?C# Point怎么用?C# Point使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Point类属于GeometryTutorLib.ConcreteAST命名空间,在下文中一共展示了Point类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page4Prob8
public Page4Prob8(bool onoff, bool complete)
: base(onoff, complete)
{
Point a = new Point("A", -1 * System.Math.Sqrt(27), -3); points.Add(a);
Point b = new Point("B", 0, 6); points.Add(b);
Point c = new Point("C", System.Math.Sqrt(27), -3); points.Add(c);
Point p = new Point("P", 0, 0); points.Add(p);
Segment ab = new Segment(a, b); segments.Add(ab);
Segment bc = new Segment(b, c); segments.Add(bc);
Segment ca = new Segment(c, a); segments.Add(ca);
Segment ap = new Segment(a, p); segments.Add(ap);
Segment bp = new Segment(b, p); segments.Add(bp);
Segment cp = new Segment(c, p); segments.Add(cp);
circles.Add(new Circle(p, 6.0));
parser = new LiveGeometry.TutorParser.HardCodedParserMain(points, collinear, segments, circles, onoff);
Triangle tri = (Triangle)parser.Get(new Triangle(a, b, c));
given.Add(new Strengthened(tri, new EquilateralTriangle(tri)));
known.AddSegmentLength(ap, 6);
List<Point> wanted = new List<Point>();
wanted.Add(new Point("", 0, -4));
wanted.Add(new Point("", -5, 0));
wanted.Add(new Point("", 5, 0));
goalRegions = parser.implied.GetAtomicRegionsByPoints(wanted);
SetSolutionArea(36 * System.Math.PI - 27 * System.Math.Sqrt(3));
}
示例2: Page145Problem04
public Page145Problem04(bool onoff, bool complete)
: base(onoff, complete)
{
problemName = "Page 145 Problem 4";
Point a = new Point("A", 0, 0); points.Add(a);
Point b = new Point("B", 5, 0); points.Add(b);
Point d = new Point("D", 1, 4); points.Add(d);
Point c = new Point("C", 6, 4); points.Add(c);
Point l = new Point("L", 2, 3); points.Add(l);
Point m = new Point("M", 4, 1); points.Add(m);
Segment ab = new Segment(a, b); segments.Add(ab);
Segment cd = new Segment(c, d); segments.Add(cd);
Segment ad = new Segment(a, d); segments.Add(ad);
Segment bc = new Segment(b, c); segments.Add(bc);
Segment al = new Segment(a, l); segments.Add(al);
Segment cm = new Segment(c, m); segments.Add(cm);
List<Point> pts = new List<Point>();
pts.Add(d);
pts.Add(l);
pts.Add(m);
pts.Add(b);
collinear.Add(new Collinear(pts));
parser = new GeometryTutorLib.TutorParser.HardCodedParserMain(points, collinear, segments, circles, onoff);
given.Add(new GeometricCongruentSegments(ab, cd));
given.Add(new GeometricCongruentAngles((Angle)parser.Get(new Angle(c, d, l)), (Angle)parser.Get(new Angle(m, b, a))));
given.Add(new GeometricCongruentAngles((Angle)parser.Get(new Angle(d, a, l)), (Angle)parser.Get(new Angle(m, c, b))));
goals.Add(new GeometricCongruentSegments(al, cm));
}
示例3: Page6Row3Prob32c
public Page6Row3Prob32c(bool onoff, bool complete)
: base(onoff, complete)
{
Point r = new Point("R", -8 * System.Math.Sin(0.3 * System.Math.PI), 8 * System.Math.Cos(0.3 * System.Math.PI)); points.Add(r);
Point p = new Point("P", 0, 0); points.Add(p);
Point s = new Point("S", 8 * System.Math.Sin(0.3 * System.Math.PI), 8 * System.Math.Cos(0.3 * System.Math.PI)); points.Add(s);
Point q = new Point("Q", 0, -4); points.Add(q);
Segment rp = new Segment(r, p); segments.Add(rp);
Segment ps = new Segment(p, s); segments.Add(ps);
Segment pq = new Segment(p, q); segments.Add(pq);
circles.Add(new Circle(p, 8));
circles.Add(new Circle(q, 4));
parser = new GeometryTutorLib.TutorParser.HardCodedParserMain(points, collinear, segments, circles, onoff);
known.AddSegmentLength(pq, 4);
known.AddAngleMeasureDegree((Angle)parser.Get(new Angle(r, p, s)), 108);
List<Point> wanted = new List<Point>();
wanted.Add(new Point("", 7, 0));
wanted.Add(new Point("", -7, 0));
wanted.Add(new Point("", -2, 1));
wanted.Add(new Point("", 2, 1));
goalRegions = parser.implied.GetAtomicRegionsByPoints(wanted);
SetSolutionArea(28.8 * System.Math.PI);
problemName = "McDougall Page 6 Row 3 Problem 32c";
GeometryTutorLib.EngineUIBridge.HardCodedProblemsToUI.AddProblem(problemName, points, circles, segments);
}
示例4: Page231Problem14
public Page231Problem14(bool onoff, bool complete)
: base(onoff, complete)
{
problemName = "Page 231 Problem 14";
Point j = new Point("J", 0, 0); points.Add(j);
Point k = new Point("K", 3, 2); points.Add(k);
Point l = new Point("L", 9, 0); points.Add(l);
Point m = new Point("M", 5, 0); points.Add(m);
Point n = new Point("N", 3, -2); points.Add(n);
Segment jk = new Segment(j, k); segments.Add(jk);
Segment jn = new Segment(j, n); segments.Add(jn);
Segment kl = new Segment(k, l); segments.Add(kl);
Segment km = new Segment(k, m); segments.Add(km);
Segment ln = new Segment(l, n); segments.Add(ln);
Segment mn = new Segment(m, n); segments.Add(mn);
List<Point> pts = new List<Point>();
pts.Add(j);
pts.Add(m);
pts.Add(l);
collinear.Add(new Collinear(pts));
parser = new LiveGeometry.TutorParser.HardCodedParserMain(points, collinear, segments, circles, onoff);
given.Add(new GeometricCongruentTriangles(new Triangle(j, k, m), new Triangle(j, n, m)));
goals.Add(new GeometricCongruentTriangles(new Triangle(j, k, l), new Triangle(j, n, l)));
}
示例5: Page301Problem42
public Page301Problem42(bool onoff, bool complete)
: base(onoff, complete)
{
problemName = "Page 301 Problem 42";
Point a = new Point("A", 0, 0); points.Add(a);
Point b = new Point("B", 0, 6); points.Add(b);
Point c = new Point("C", 4, 3); points.Add(c);
Point d = new Point("D", 8, 0); points.Add(d);
Segment ab = new Segment(a, b); segments.Add(ab);
Segment ac = new Segment(a, c); segments.Add(ac);
Segment ad = new Segment(a, d); segments.Add(ad);
List<Point> pts = new List<Point>();
pts.Add(b);
pts.Add(c);
pts.Add(d);
collinear.Add(new Collinear(pts));
parser = new LiveGeometry.TutorParser.HardCodedParserMain(points, collinear, segments, circles, onoff);
given.Add(new Midpoint((InMiddle)parser.Get(new InMiddle( c, (Segment)parser.Get(new Segment(b, d))))));
given.Add(new RightAngle(b, a, d));
goals.Add(new GeometricCongruentSegments((Segment)parser.Get(new Segment(b, c)), ac));
goals.Add(new GeometricCongruentSegments((Segment)parser.Get(new Segment(d, c)), ac));
}
示例6: Page145Problem08
public Page145Problem08(bool onoff, bool complete)
: base(onoff, complete)
{
problemName = "Page 145 Problem 8";
Point f = new Point("F", 0, 5); points.Add(f);
Point l = new Point("L", 4, 7); points.Add(l);
Point k = new Point("K", 4, 3); points.Add(k);
Point a = new Point("A", 5, 5); points.Add(a);
Point j = new Point("J", 3, 5); points.Add(j);
Segment fl = new Segment(f, l); segments.Add(fl);
Segment fk = new Segment(f, k); segments.Add(fk);
Segment al = new Segment(a, l); segments.Add(al);
Segment ak = new Segment(a, k); segments.Add(ak);
Segment jl = new Segment(j, l); segments.Add(jl);
Segment jk = new Segment(j, k); segments.Add(jk);
List<Point> pts = new List<Point>();
pts.Add(f);
pts.Add(j);
pts.Add(a);
collinear.Add(new Collinear(pts));
parser = new LiveGeometry.TutorParser.HardCodedParserMain(points, collinear, segments, circles, onoff);
given.Add(new AngleBisector((Angle)parser.Get(new Angle(l, f, k)), (Segment)parser.Get(new Segment(f, a))));
given.Add(new AngleBisector((Angle)parser.Get(new Angle(l, a, k)), (Segment)parser.Get(new Segment(f, a))));
goals.Add(new AngleBisector((Angle)parser.Get(new Angle(l, j, k)), (Segment)parser.Get(new Segment(f, a))));
}
示例7: Page156Problem36
public Page156Problem36(bool onoff, bool complete)
: base(onoff, complete)
{
problemName = "Page 156 Problem 36";
Point j = new Point("J", 0, 10); points.Add(j);
Point k = new Point("K", 10, 10); points.Add(k);
Point l = new Point("L", 20, 10); points.Add(l);
Point m = new Point("M", 5, 0); points.Add(m);
Point n = new Point("N", 15, 0); points.Add(n);
Segment jm = new Segment(j, m); segments.Add(jm);
Segment km = new Segment(k, m); segments.Add(km);
Segment kn = new Segment(k, n); segments.Add(kn);
Segment ln = new Segment(l, n); segments.Add(ln);
List<Point> pts = new List<Point>();
pts.Add(j);
pts.Add(k);
pts.Add(l);
collinear.Add(new Collinear(pts));
parser = new GeometryTutorLib.TutorParser.HardCodedParserMain(points, collinear, segments, circles, onoff);
given.Add(new GeometricCongruentAngles((Angle)parser.Get(new Angle(m, j, k)), (Angle)parser.Get(new Angle(m, k, j))));
given.Add(new GeometricCongruentAngles((Angle)parser.Get(new Angle(n, k, l)), (Angle)parser.Get(new Angle(n, l, k))));
given.Add(new GeometricParallel(jm, kn));
goals.Add(new GeometricParallel(km, ln));
}
示例8: Page229Problem05
public Page229Problem05(bool onoff, bool complete)
: base(onoff, complete)
{
problemName = "Page 229 Problem 05";
Point a = new Point("A", 13.0 / 2.0, 3.0); points.Add(a);
Point b = new Point("B", 0, 3); points.Add(b);
Point c = new Point("C", 2, 0); points.Add(c);
Point e = new Point("E", 13.0 / 3.0, 3); points.Add(e);
Point f = new Point("F", 5, 2); points.Add(f);
Segment bc = new Segment(c, b); segments.Add(bc);
Segment ef = new Segment(e, f); segments.Add(ef);
List<Point> pts = new List<Point>();
pts.Add(a);
pts.Add(f);
pts.Add(c);
collinear.Add(new Collinear(pts));
pts = new List<Point>();
pts.Add(b);
pts.Add(e);
pts.Add(a);
collinear.Add(new Collinear(pts));
parser = new GeometryTutorLib.TutorParser.HardCodedParserMain(points, collinear, segments, circles, onoff);
}
示例9: IPage123Example6
public IPage123Example6(bool onoff, bool complete)
: base(onoff, complete)
{
problemName = "Book I Page 123 Example 6";
Point a = new Point("A", 3.5, 4); points.Add(a);
Point b = new Point("B", 0, 0); points.Add(b);
Point c = new Point("C", 7, 0); points.Add(c);
Point d = new Point("D", 2, 0); points.Add(d);
Point e = new Point("E", 5, 0); points.Add(e);
Segment ab = new Segment(a, b); segments.Add(ab);
Segment ac = new Segment(a, c); segments.Add(ac);
Segment ad = new Segment(a, d); segments.Add(ad);
Segment ae = new Segment(a, e); segments.Add(ae);
List<Point> pts = new List<Point>();
pts.Add(b);
pts.Add(d);
pts.Add(e);
pts.Add(c);
collinear.Add(new Collinear(pts));
parser = new LiveGeometry.TutorParser.HardCodedParserMain(points, collinear, segments, circles, onoff);
given.Add(new IsoscelesTriangle((Triangle)parser.Get(new Triangle(a, b, c))));
given.Add(new GeometricCongruentSegments((Segment)parser.Get(new Segment(b, e)), (Segment)parser.Get(new Segment(c, d))));
goals.Add(new GeometricCongruentSegments(ad, ae));
}
示例10: BasicPolygonTester
public BasicPolygonTester(bool onoff, bool complete)
: base(onoff, complete)
{
Point a = new Point("A", -2, 0); points.Add(a);
Point b = new Point("B", 0, 6); points.Add(b);
Point c = new Point("C", 2, 0); points.Add(c);
Point d = new Point("D", 3, -1); points.Add(d);
Point e = new Point("E", 1, 3); points.Add(e);
Point f = new Point("F", 0, 0); points.Add(f);
Segment ab = new Segment(a, b); segments.Add(ab);
Segment bc = new Segment(b, c); segments.Add(bc);
Segment ca = new Segment(c, a); segments.Add(ca);
Segment de = new Segment(d, e); segments.Add(de);
Segment ef = new Segment(e, f); segments.Add(ef);
Segment fd = new Segment(f, d); segments.Add(fd);
Segment cd = new Segment(c, d); segments.Add(cd);
parser = new GeometryTutorLib.TutorParser.HardCodedParserMain(points, collinear, segments, circles, onoff);
// The goal is the entire area of the figure.
goalRegions = new List<GeometryTutorLib.Area_Based_Analyses.Atomizer.AtomicRegion>(parser.implied.atomicRegions);
}
示例11: IPage120Problem6
public IPage120Problem6(bool onoff, bool complete)
: base(onoff, complete)
{
problemName = "Book I Page 120 Problem 6";
Point a = new Point("A", 2, 6); points.Add(a);
Point b = new Point("B", 0, 0); points.Add(b);
Point c = new Point("C", 10, 0); points.Add(c);
Point d = new Point("D", 4, 0); points.Add(d);
Point e = new Point("E", 12, 6); points.Add(e);
Segment ab = new Segment(a, b); segments.Add(ab);
Segment ad = new Segment(a, d); segments.Add(ad);
Segment ac = new Segment(a, c); segments.Add(ac);
Segment ae = new Segment(a, e); segments.Add(ae);
Segment ec = new Segment(e, c); segments.Add(ec);
Segment de = new Segment(d, e); segments.Add(de);
List<Point> pts = new List<Point>();
pts.Add(b);
pts.Add(d);
pts.Add(c);
collinear.Add(new Collinear(pts));
parser = new LiveGeometry.TutorParser.HardCodedParserMain(points, collinear, segments, circles, onoff);
given.Add(new GeometricCongruentSegments(ac, ae));
given.Add(new GeometricCongruentSegments(ab, ad));
given.Add(new GeometricCongruentAngles((Angle)parser.Get(new Angle(b, a, d)), (Angle)parser.Get(new Angle(e, a, c))));
goals.Add(new GeometricCongruentSegments((Segment)parser.Get(new Segment(b, c)), de));
}
示例12: Page273Problem39
public Page273Problem39(bool onoff, bool complete)
: base(onoff, complete)
{
problemName = "Page 273 Problem 39";
Point a = new Point("A", 1, 0); points.Add(a);
Point b = new Point("B", 0, 5); points.Add(b);
Point c = new Point("C", 3, 3); points.Add(c);
Point d = new Point("D", 5, 6); points.Add(d);
Point e = new Point("E", 6, 1); points.Add(e);
Segment ab = new Segment(a, b); segments.Add(ab);
Segment de = new Segment(d, e); segments.Add(de);
List<Point> pts = new List<Point>();
pts.Add(a);
pts.Add(c);
pts.Add(d);
collinear.Add(new Collinear(pts));
pts = new List<Point>();
pts.Add(b);
pts.Add(c);
pts.Add(e);
collinear.Add(new Collinear(pts));
parser = new LiveGeometry.TutorParser.HardCodedParserMain(points, collinear, segments, circles, onoff);
given.Add(new SegmentBisector(parser.GetIntersection(new Segment(a, d), new Segment(b, e)), (Segment)parser.Get(new Segment(a, d))));
given.Add(new GeometricParallel(ab, de));
goals.Add(new GeometricCongruentTriangles(new Triangle(a, b, c), new Triangle(d, e, c)));
}
示例13: Page66Problem16
public Page66Problem16(bool onoff, bool complete)
: base(onoff, complete)
{
problemName = "Page 66 Problem 16";
Point a = new Point("A", 1, 5); points.Add(a);
Point b = new Point("B", 8, 5); points.Add(b);
Point c = new Point("C", 7, 0); points.Add(c);
Point d = new Point("D", 0, 0); points.Add(d);
Segment ba = new Segment(b, a); segments.Add(ba);
Segment bc = new Segment(b, c); segments.Add(bc);
Segment ad = new Segment(a, d); segments.Add(ad);
Segment bd = new Segment(b, d); segments.Add(bd);
Segment cd = new Segment(c, d); segments.Add(cd);
parser = new LiveGeometry.TutorParser.HardCodedParserMain(points, collinear, segments, circles, onoff);
given.Add(new GeometricCongruentSegments(ba, cd));
given.Add(new GeometricCongruentSegments(bc, ad));
given.Add(new GeometricCongruentAngles((Angle)parser.Get(new Angle(a, b, d)), (Angle)parser.Get(new Angle(c, d, b))));
given.Add(new GeometricCongruentAngles((Angle)parser.Get(new Angle(a, d, b)), (Angle)parser.Get(new Angle(c, b, d))));
goals.Add(new GeometricCongruentTriangles(new Triangle(a, b, d), new Triangle(c, d, b)));
}
示例14: Page223Problem22
public Page223Problem22(bool onoff, bool complete)
: base(onoff, complete)
{
problemName = "Page 223 Problem 22";
Point x = new Point("X", 1, 0); points.Add(x);
Point f = new Point("F", 3, 4); points.Add(f);
Point s = new Point("S", 4, 6); points.Add(s);
Point e = new Point("E", 5, 0); points.Add(e);
Point r = new Point("R", 7, 0); points.Add(r);
Segment rs = new Segment(r, s); segments.Add(rs);
Segment ef = new Segment(e, f); segments.Add(ef);
List<Point> pts = new List<Point>();
pts.Add(x);
pts.Add(e);
pts.Add(r);
collinear.Add(new Collinear(pts));
pts = new List<Point>();
pts.Add(x);
pts.Add(f);
pts.Add(s);
collinear.Add(new Collinear(pts));
parser = new LiveGeometry.TutorParser.HardCodedParserMain(points, collinear, segments, circles, onoff);
given.Add(new GeometricParallel(rs, ef));
goals.Add(new GeometricSimilarTriangles((Triangle)parser.Get(new Triangle(f, x, e)), (Triangle)parser.Get(new Triangle(s, x, r))));
}
示例15: Page164Problem36
public Page164Problem36(bool onoff, bool complete)
: base(onoff, complete)
{
problemName = "Page 164 Problem 36";
Point a = new Point("A", 11, 8); points.Add(a);
Point b = new Point("B", 10, 8); points.Add(b);
Point c = new Point("C", 10, 11); points.Add(c);
Point d = new Point("D", 0, 8); points.Add(d);
Point e = new Point("E", 0, 0); points.Add(e);
Point f = new Point("F", 10, 0); points.Add(f);
Segment de = new Segment(d, e); segments.Add(de);
Segment ef = new Segment(e, f); segments.Add(ef);
List<Point> pts = new List<Point>();
pts.Add(f);
pts.Add(b);
pts.Add(c);
collinear.Add(new Collinear(pts));
pts = new List<Point>();
pts.Add(d);
pts.Add(b);
pts.Add(a);
collinear.Add(new Collinear(pts));
parser = new LiveGeometry.TutorParser.HardCodedParserMain(points, collinear, segments, circles, onoff);
given.Add(new GeometricCongruentAngles((Angle)parser.Get(new Angle(b, d, e)), (Angle)parser.Get(new Angle(c, b, d))));
goals.Add(new GeometricParallel(de, new Segment(f, c)));
}