using System; using GP = Science.Physics.GeneralPhysics; namespace ScienceTest.PhysicsTest.GeneralPhysicsTest { /// /// VectorAlgebraTest /// public class VectorTest { public VectorTest() { } private string result; public string Result { get{return result;} } public void Compute() { GP.Vector a = new GP.Vector(); a.X = 2.0; a.Y = 3.0; a.Z = 4.0; GP.Vector b = new GP.Vector(); b.X = 12.0; b.Y = 13.0; b.Z = 14.0; result += (a%b).ToString()+"\r\n"; GP.Scalar c = new GP.Scalar(); c.Magnitude = 8.0; result += (c*a).ToString(); } } } /* -10 +/- 0 i +20 +/- 0 j -10 +/- 0 k 16 +/- 0 i +24 +/- 0 j +32 +/- 0 k */