public class FNMath
extends java.lang.Object
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static double |
ABSOLUTE_ZERO_TEMP |
| コンストラクタと説明 |
|---|
FNMath() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static double |
clamp(double value,
double min,
double max)
数値をminより大きく、maxより小さくする
|
static float |
clamp(float value,
float min,
float max)
数値をminより大きく、maxより小さくする
|
static int |
clamp(int value,
int min,
int max)
数値をminより大きく、maxより小さくする
|
static long |
clamp(long value,
long min,
long max)
数値をminより大きく、maxより小さくする
|
static double |
toCelsiusTemp(double kelvin)
絶対温度をセ氏温度へ変換
|
static float |
toCelsiusTemp(float kelvin)
絶対温度をセ氏温度へ変換
|
static int |
toCelsiusTemp(int kelvin)
絶対温度をセ氏温度へ変換
|
static long |
toCelsiusTemp(long kelvin)
絶対温度をセ氏温度へ変換
|
static double |
toKelvinTemp(double celsius)
セ氏温度を絶対温度へ変換
|
static float |
toKelvinTemp(float celsius)
セ氏温度を絶対温度へ変換
|
static int |
toKelvinTemp(int celsius)
セ氏温度を絶対温度へ変換
|
static long |
toKelvinTemp(long celsius)
セ氏温度を絶対温度へ変換
|
public static final double ABSOLUTE_ZERO_TEMP
public static float toKelvinTemp(float celsius)
celsius - セ氏温度public static float toCelsiusTemp(float kelvin)
kelvin - 絶対温温度public static int toKelvinTemp(int celsius)
celsius - セ氏温度public static int toCelsiusTemp(int kelvin)
kelvin - 絶対温温度public static long toKelvinTemp(long celsius)
celsius - セ氏温度public static long toCelsiusTemp(long kelvin)
kelvin - 絶対温温度public static double toKelvinTemp(double celsius)
celsius - セ氏温度public static double toCelsiusTemp(double kelvin)
kelvin - 絶対温温度public static int clamp(int value,
int min,
int max)
value - 対象数値min - 最小値max - 最大値public static long clamp(long value,
long min,
long max)
value - 対象数値min - 最小値max - 最大値public static float clamp(float value,
float min,
float max)
value - 対象数値min - 最小値max - 最大値public static double clamp(double value,
double min,
double max)
value - 対象数値min - 最小値max - 最大値