using System; using GP = Science.Physics.GeneralPhysics; namespace ScienceTest.PhysicsTest.GeneralPhysicsTest { /// /// UnitVectorTest /// public class UnitVectorTest { public UnitVectorTest() { } private string result; public string Result { get{return result;} } public void Compute() { GP.Vector v = 2 * GP.UnitVector.i + 3 * GP.UnitVector.j - 4 * GP.UnitVector.k; GP.Vector w = new GP.Vector(); w.X = 3.0; w.Y = 5.0; w.Z = 8.0; GP.Vector z = v + w; result += z.ToString(); } } } //5 +/- 0 i +8 +/- 0 j +4 +/- 0 k