シグモイド補間

2019/07/16DEVELOP, GAME

いわゆるS字カーブ補間

public float Sigmoid(float t)
{
    var temp = 1 / (1 + Mathf.Exp(-t));
    if (temp == Mathf.Infinity)
    {
        return t;
    }
    return temp;
}

詳細はこちら
http://www.mwsoft.jp/programming/equation/sigmoid.html

Posted by kazupon