Houdini:exhelp fit


fit:  任意の変数を古い範囲指定を基に、新規の範囲に再計算する。もし、古い範囲指定の値が、任意の変数より外にはみ出していた場合は、クランプされる。

float fit (float num, float oldmin, float oldmax, float newmin, float newmax)


        REPLACED BY

            hou.hmath.fit()  

        Fits a value from one range to another.



        Return a number between newmin and newmax that is relative to num in the

        range between oldmin and oldmax. If the value is outside the old range,

        it will be clamped to the new range.  

        EXAMPLES

              fit(3,1,4,5,20)=15

               

        RELATED

          * fit01

          * fit11

          * fit10

0 コメント:

コメントを投稿