Section.getFormulaContrib C# (CSharp) Method

getFormulaContrib() public method

public getFormulaContrib ( ) : float
return float
    public float getFormulaContrib()
    {
        switch (type) {
            case Type.ACCELERATION:
            case Type.DECELERATION:
                return s_inSection / (0.5f * velocReducer + 0.5f);
            case Type.CONSTANT:
                return s_inSection;
            default: // Type.WAIT
                return 0f;
        }
    }