using System; namespace Science.Mathematics.VectorCalculus { public class TangentLine : Line { public TangentLine() { } public TangentLine(Path path, double time) { Vector c = new Vector(path.Map(time).Length); TangentVector v = new TangentVector(path, time); v.Compute(); Vector cp = v.Result; this.ThroughTip = c - time * cp; this.Direction = cp; } } }