Version: 2022.3
言語: 日本語

Mathf

struct in UnityEngine

マニュアルに切り替える

説明

一般的な数学関数を扱います。

Static 変数

Deg2Rad度からラジアンに変換する定数(読み取り専用)
Epsilonごくわずかな浮動小数点の値を返す(読み取り専用)。
Infinity無限大を表現します(読み取り専用)
NegativeInfinity負の無限大を表現します(読み取り専用)
PIThe well-known 3.14159265358979... value (Read Only).
Rad2Degラジアンから度に変換する定数(読み取り専用)

Static 関数

Abs/f/の絶対値を返す。
Acos f のアークコサイン (コサインの値が f になる、ラジアンで表された角度) を返します。
Approximately2 つの浮動小数点値を比較し、近似している場合は true を返します。
Asin f のアークサイン (サインの値が f になる、ラジアンで表された角度) を返します。
Atan f のアークタンジェント (タンジェントの値が f になる、ラジアンで表された角度) を返します。
Atan2 Tan が y/x になる角度をラジアンで返します。
Ceil f 以上の最小の整数を返します。
CeilToInt f 以上の最小の整数を返します。
ClampClamps the given value between the given minimum float and maximum float values. Returns the given value if it is within the minimum and maximum range.
Clamp010 と 1 の間に値を制限し、その値を返します。
ClosestPowerOfTwoもっとも近い 2 のべき乗の値を返す。
CorrelatedColorTemperatureToRGBConvert a color temperature in Kelvin to RGB color.
CosReturns the cosine of angle f.
DeltaAngle与えられた 2 つの角度(単位は度)間の最小の差を計算します。
Expe (ネイピア数) を指定した乗数で返します。
FloatToHalfEncode a floating point value into a 16-bit representation.
FloorReturns the largest integer smaller than or equal to f.
FloorToInt f 以下の最大の整数を返します。
GammaToLinearSpaceガンマ (sRGB) からリニアの色空間へ値を変換します。
HalfToFloatConvert a half precision float to a 32-bit floating point value.
InverseLerpDetermines where a value lies between two points.
IsPowerOfTwo値が 2 のべき乗のときに、true を返す。
Lerp a と b の間で t による線形補間します。
LerpAngle Lerp と同じです。ただし、360 度の回転の場合は、正しく補間されるよう注意してください。
LerpUnclamped a と b の間で t による線形補間します。t に制限はありません。
LinearToGammaSpaceリニアからガンマ (sRGB) の色空間へ値を変換します。
Log指定した底で指定した数の対数を返します。
Log10指定した数の底が 10 の対数を返します。
Max2 つ以上の値から最大値を返します。
Min2 つ以上の値から最小値を返します。
MoveTowards current から target まで、maxDelta のスピードで移動します。
MoveTowardsAngle MoveTowards と同じです。ただし、360 度の回転の場合は、正しく補間されるよう注意してください。
NextPowerOfTwoReturns the next power of two that is equal to, or greater than, the argument.
PerlinNoise2D のパーリンノイズを生成します
PerlinNoise1DGenerates a 1D pseudo-random pattern of float values across a 2D plane.
PingPongPingPong returns a value that will increment and decrement between the value 0 and length.
Pow f の p 乗の値を返します。
Repeat値 t は length より大きくはならず 0 より小さくはならず、その間をループします。
Round f に最も近い整数を返します。
RoundToInt f に最も近い整数を返します。
Sign f の符号を返します。
SinReturns the sine of angle f.
SmoothDamp徐々に時間をかけて望む目標に向かって値を変更します。
SmoothDampAngle目標とする角度に向けて徐々に時間をかけて角度を変更します。度単位で指定します。
SmoothStep Min と Max の間で制限したスムージングで補間します。
Sqrt f の平方根を返します。
Tanラジアンで表された角度 f のタンジェントを返します。