Static
map与えられた数値を一つの範囲から別の範囲にマッピングします。
Maps a given number from one range to another.
# 元の範囲が0から100で、新しい範囲が0から1の場合
map(50, 0, 100, 0, 1) // 0.5
# 元の範囲が0から100で、新しい範囲が0から10の場合
map(50, 0, 100, 0, 10) // 5
マッピングする数値。 The number to map.
元の範囲の開始値。 The start value of the original range.
元の範囲の終了値。 The end value of the original range.
新しい範囲の開始値。 The start value of the new range.
新しい範囲の終了値。 The end value of the new range.
マッピングされた数値。 The mapped number.
Generated using TypeDoc
数値ユーティリティメソッドを提供するクラス
Class that provides number utility methods