public JSBar(JSBar bar) { StartVertex = bar.StartVertex; EndVertex = bar.EndVertex; EA = bar.EA; }
/// <summary> /// Create a bar between a node and a point positions (unconnected to nodes). /// The unconnected vertex position will be connected to a node when this bar is added to a JointAnalysis model. /// </summary> public JSBar(Vector2d startPoint, JSNode endNode) { StartVertex = new JSVertex(startPoint, this); EndVertex = new JSVertex(endNode, this); }
/// <summary> /// Create a bar between 2 positions (unconnected to nodes). /// Node connections will be formed when this bar is added to a JointAnalysis model. /// </summary> public JSBar(Vector2d startPoint, Vector2d endPoint) { StartVertex = new JSVertex(startPoint, this); EndVertex = new JSVertex(endPoint, this); }
/// <summary> /// Create a bar between a node and a point positions (unconnected to nodes). /// The unconnected vertex position will be connected to a node when this bar is added to a JointAnalysis model. /// </summary> public JSBar(JSNode startNode, Vector2d endPoint) { StartVertex = new JSVertex(startNode, this); EndVertex = new JSVertex(endPoint, this); }
/// <summary> /// Create a bar between 2 nodes. /// </summary> public JSBar(JSNode startNode, JSNode endNode) { StartVertex = new JSVertex(startNode, this); EndVertex = new JSVertex(endNode, this); }