/// <summary> /// Create an analytical bar. /// </summary> /// <param name="start">The start node.</param> /// <param name="end">The end node.</param> /// <param name="diameter">The diameter.</param> /// <param name="sectionType">The section type.</param> /// <param name="thickness">The thickness.</param> /// <param name="endRelease">The end release.</param> public AnalyticalBar(AnalyticalNode start, AnalyticalNode end, double diameter, SectionType sectionType, double thickness, string endRelease) { Start = start; End = end; Diameter = diameter; SectionType = sectionType; SectionThickness = thickness; EndRelease = endRelease; }
public override FScheme.Value Evaluate(FSharpList<FScheme.Value> args) { var x = (double)((Value.Number)args[0]).Item; var y = (double)((Value.Number)args[1]).Item; var z = (double)((Value.Number)args[2]).Item; var isFixed = Convert.ToBoolean((double)((Value.Number)args[3]).Item); var n = new AnalyticalNode(x, y, z, isFixed); return Value.NewContainer(n); }