using System; using System.Collections.Generic; using System.Linq; using System.Text; using V = Science.Mathematics.VectorCalculus; namespace VectorCalculus5Ed.Chapter1.Section1 { public class Example15 { public Example15() { } private string result; public string Result { get{return result;} } public void Compute() { V.Point p = new V.Point(3); p[0] = -1.0; p[1] = 1.0; p[2] = 0.0; V.Point q = new V.Point(3); q[0] = 0.0; q[1] = 0.0; q[2] = 1.0; V.Line l = new V.Line(p, q); l.Parameter = 2.0; V.Vector v3 = l.GetVectorOnLine(); result += v3.ToString(); } } } // (1,-1,2)