using System; using GP = Science.Physics.GeneralPhysics; namespace ScienceTest.PhysicsTest.GeneralPhysicsTest { /// /// SurfaceTest /// public class SurfaceTest { public SurfaceTest() { } private string result; public string Result { get{return result;} } public void Compute() { GP.Surface.Parameterization ptp = new GP.Surface.Parameterization(func1); GP.Surface s = new GP.Surface(ptp); s.Parameter1EndValue = 3.5; s.Parameter1StartValue = -3.5; s.Parameter2EndValue = 3.5; s.Parameter2StartValue = -3.5; result += s.Parameter2StartValue.ToString(); } private GP.Position func1(double x, double y) { GP.Position r = new GP.Position(); r.X = x + y; r.Y = x; r.Z = x - y; return r; } } } //-3.5