public void PointInPlane() { Plane p = new Plane(); p.Add(P); p.Add(Q); p.Add(S); p.BuildFormula(); Assert.AreEqual(true, p.IsInPlane(new Point(-2, 13, 5))); }
private static Plane GetDefaultPlane() { var plane = new Plane(); plane.Add(new Crew(2, 6)); plane.Add(new Pilot()); plane.Add(new Pilot()); for (int i = 0; i < 6; i++) { plane.Add(new Stewardess()); } plane.Add(new BusinessClass(20, 20 * 35)); plane.Add(new FirstClass(10, 10 * 60)); plane.Add(new EconomyClass(150, 150 * 20)); return(plane); }