Canguro.Commands.Model.SplitCmd.RelocateConcentratedLoads C# (CSharp) Метод

RelocateConcentratedLoads() приватный статический Метод

Relocates a ConcentratedSpanLoad between the line element where it is and a new adjacent line element.
private static RelocateConcentratedLoads ( AssignedLoads newLineLoads, LoadCase lc, float x, ConcentratedSpanLoad load ) : bool
newLineLoads AssignedLoads The AssignedLoads object of the new Line Element
lc Canguro.Model.Load.LoadCase The Load Case to which the load belongs.
x float The dividing point of the two line elements [0, 1]
load Canguro.Model.Load.ConcentratedSpanLoad The Load to distribute in two elements
Результат bool
        private static bool RelocateConcentratedLoads(AssignedLoads newLineLoads, LoadCase lc, float x, ConcentratedSpanLoad load)
        {
            if (x > load.D)
            {
                load.D = load.D / x;
                return false;
            }
            else
            {
                load = (ConcentratedSpanLoad)load.Clone();
                load.Id = 0;
                load.D = (load.D - x) / (1f - x);
                newLineLoads.Add(load, lc);
                return true;
            }
        }