Пример #1
0
 public ComponentLinear(ComponentNode start, ComponentNode end, RodModel model) : base()
 {
     node1   = start; node2 = end;
     state   = ComponentState.csNormal;
     Model   = model;
     Section = Model.CrossSections[0];
 }
Пример #2
0
        public ElementBeam(ComponentLinear l, RodModel model)
        {
            Linear     = l;
            Model      = model;
            HingeStart = Linear.HingeStart;
            HingeEnd   = Linear.HingeEnd;

            point1[0] = Linear.Start.X;
            point1[1] = Linear.Start.Y;

            point2[0] = Linear.End.X;
            point2[1] = Linear.End.Y;
            Length    = Math.Sqrt(Math.Pow((point1[0] - point2[0]), 2) + Math.Pow((point1[1] - point2[1]), 2));
            Angle     = Math.Atan2(point2[1] - point1[1], point2[0] - point1[0]);

            InitCosines();
            InitRMatrix();
            InitExtMatrix();
        }