Section.calcTinSection C# (CSharp) Method

calcTinSection() public method

public calcTinSection ( float v_max ) : void
v_max float
return void
    public void calcTinSection(float v_max)
    {
        this.v_max = v_max;

        switch (type) {
        case Type.ACCELERATION:
        case Type.DECELERATION:
            t_inSection = s_inSection / (v_max * (0.5f + 0.5f * velocReducer));
            break;
        case Type.CONSTANT:
            t_inSection = s_inSection / v_max;
            break;
        }
    }