|
|
template<class T > |
static GX_FORCE_INLINE T | getAbs (const T value) |
| 絶対値
|
|
template<class T > |
static GX_FORCE_INLINE T | getClamp (const T value, const T min, const T max) |
| 最小値・最大値で切り落とす
|
|
template<class T > |
static GX_FORCE_INLINE T | getMin (const T value0, const T value1) |
| 小さいほうを取得
|
|
template<class T > |
static GX_FORCE_INLINE T | getMax (const T value0, const T value1) |
| 大きいほうを取得
|
|
template<class T > |
static GX_FORCE_INLINE T | getLerp (const T value0, const T value1, f32 ratio) |
| 線形補間を取得
|
|
template<class T > |
static GX_FORCE_INLINE void | swap (T &a, T &b) |
| 2つの値をスワップ
|
|
static f32 | getLoop (f32 value, f32 min, f32 max) |
| 余剰を計算して[min,max)の範囲に収める
|
|
static GX_FORCE_INLINE f32 | getLoopPI (f32 value) |
| 余剰を計算して[-π,π)の範囲に収める
|
|
static GX_FORCE_INLINE f32 | getLoopPI2 (f32 value) |
| 余剰を計算して[0,2π)の範囲に収める
|
|
static constexpr s32 | getSign (s32 value) |
| 符号を取得
|
|
static constexpr f32 | getSign (f32 value) |
| 符号を取得
|
|
static constexpr f32 | getDegree (f32 radian) |
| 角度(度数法)を取得
|
|
static constexpr f64 | getDegree (f64 radian) |
| 角度(度数法)を取得
|
|
static constexpr f32 | getRadian (f32 degree) |
| 角度(弧度法)を取得
|
|
static constexpr f64 | getRadian (f64 degree) |
| 角度(弧度法)を取得
|
|
static f32 | getMinRadian (f32 radian) |
| ラジアンの絶対値を最小にして取得
|
|
static GX_FORCE_INLINE f32 | getSaturate (const f32 value) |
| 0.0f~1.0の範囲にクランプした値を取得(f32)
|
|
static GX_FORCE_INLINE f64 | getSaturate (const f64 value) |
| 0.0f~1.0の範囲にクランプした値を取得(f64)
|
|
static GX_FORCE_INLINE f32 | getSin (const f32 radian) |
| 正弦を取得(f32)
|
|
static GX_FORCE_INLINE f64 | getSin (const f64 radian) |
| 正弦を取得(f64)
|
|
static GX_FORCE_INLINE f32 | getFastSin (const f32 radian) |
| 正弦を取得(FPU, f32)
|
|
static GX_FORCE_INLINE f32 | getCos (const f32 radian) |
| 余弦を取得(f32)
|
|
static GX_FORCE_INLINE f64 | getCos (const f64 radian) |
| 余弦を取得(f64)
|
|
static GX_FORCE_INLINE f32 | getFastCos (const f32 radian) |
| 余弦を取得(FPU, f32)
|
|
static GX_FORCE_INLINE f32 | getTan (const f32 radian) |
| 正接を取得(f32)
|
|
static GX_FORCE_INLINE f64 | getTan (const f64 radian) |
| 正接を取得(f64)
|
|
static GX_FORCE_INLINE f32 | getFastTan (const f32 radian) |
| 正接を取得(FPU, f32)
|
|
static GX_FORCE_INLINE f32 | getASin (const f32 value) |
| 逆正弦を取得(f32)
|
|
static GX_FORCE_INLINE f64 | getASin (const f64 value) |
| 逆正弦を取得(f64)
|
|
static GX_FORCE_INLINE f32 | getFastASin (const f32 value) |
| 逆正弦を取得(FPU, f32)
|
|
static GX_FORCE_INLINE f32 | getACos (const f32 value) |
| 逆余弦を取得(f32)
|
|
static GX_FORCE_INLINE f64 | getACos (const f64 value) |
| 逆余弦を取得(f64)
|
|
static GX_FORCE_INLINE f32 | getFastACos (const f32 value) |
| 逆余弦を取得(FPU, f32)
|
|
static GX_FORCE_INLINE f32 | getATan (const f32 value) |
| 逆正接を取得(f32)
|
|
static GX_FORCE_INLINE f64 | getATan (const f64 value) |
| 逆正接を取得(f64)
|
|
static GX_FORCE_INLINE f32 | getFastATan (const f32 value) |
| 逆正接を取得(FPU, f32)
|
|
static GX_FORCE_INLINE f32 | getATan2 (const f32 valueY, const f32 valueX) |
| 逆正接を取得(f32)
|
|
static GX_FORCE_INLINE f64 | getATan2 (const f64 valueY, const f64 valueX) |
| 逆正接を取得(f64)
|
|
static GX_FORCE_INLINE f32 | getFastATan2 (const f32 valueY, const f32 valueX) |
| 逆正接を取得(FPU, f32)
|
|
static GX_FORCE_INLINE f32 | getSqrtInverse (const f32 value) |
| 平方根の逆数を取得(f32)
|
|
static GX_FORCE_INLINE f64 | getSqrtInverse (const f64 value) |
| 平方根の逆数を取得(f64)
|
|
static GX_FORCE_INLINE f32 | getSqrt (const f32 value) |
| 平方根を取得(f32)
|
|
static GX_FORCE_INLINE f64 | getSqrt (const f64 value) |
| 平方根を取得(f64)
|
|
static GX_FORCE_INLINE f32 | getLog (const f32 value) |
| 対数を取得(f32)
|
|
static GX_FORCE_INLINE f64 | getLog (const f64 value) |
| 対数を取得(f64)
|
|
static GX_FORCE_INLINE f32 | getLog (const f32 value, const f32 base) |
| 対数を取得(f32)
|
|
static GX_FORCE_INLINE f64 | getLog (const f64 value, const f64 base) |
| 対数を取得(f64)
|
|
static GX_FORCE_INLINE f32 | getPow (const f32 value, const f32 n) |
| n乗を取得(f32)
|
|
static GX_FORCE_INLINE f64 | getPow (const f64 value, const f64 n) |
| n乗を取得(f64)
|
|
static GX_FORCE_INLINE f32 | getExp (const f32 n) |
| 自然対数のn乗を取得(f32)
|
|
static GX_FORCE_INLINE f64 | getExp (const f64 n) |
| 自然対数のn乗を取得(f64)
|
|
static GX_FORCE_INLINE f32 | getFastExp (const f32 n) |
| 自然対数のn乗を取得(FPU, f32)
|
|
static u32 | getLog (u32 value, const u32 base=2) |
| 対数を取得
|
|
static u64 | getPow (const u32 value, const u32 n) |
| n乗を取得
|
|
static u32 | getFigure (const s64 value) |
| 桁数を取得
|
|
static u32 | getFigure (const u64 value) |
| 桁数を取得
|
|
static u32 | getHash32 (void *pData, u32 size) |
| ハッシュ値取得(32bit、データ、サイズ指定版)
|
|
static u32 | getHash32 (GX_CSTR string) |
| ハッシュ値取得(32bit、文字列指定版)
|
|
static u32 | getHash32 (GX_CSTR string, u32 value) |
| ハッシュ値取得(32bit、文字列、数値指定版)
|
|
static u32 | getHash32Encrypt (GX_CSTR string) |
| ハッシュ値取得(32bit、文字列指定、暗号化版)
|
|
static u32 | getHash32 (GX_CWSTR string) |
| ハッシュ値取得(32bit、ワイド文字列指定版)
|
|
static u32 | getHash32 (GX_CWSTR string, u32 value) |
| ハッシュ値取得(32bit、ワイド文字列、数値指定版)
|
|
static u32 | getHash32Encrypt (GX_CWSTR string) |
| ハッシュ値取得(32bit、ワイド文字列指定、暗号化版)
|
|
static u64 | getHash64 (void *pData, u32 size) |
| ハッシュ値取得(64bit、データ、サイズ指定版)
|
|
static u64 | getHash64Fast (void *pData, u32 size) |
| ハッシュ値取得(64bit、データ、サイズ指定、高速版)
|
|
static u64 | getHash64 (GX_CSTR string) |
| ハッシュ値取得(64bit、文字列指定版)
|
|
static u64 | getHash64 (GX_CWSTR string) |
| ハッシュ値取得(64bit、ワイド文字列指定版)
|
|
static u32 | addHash32 (u32 hash, u32 value) |
| 既存の取得ハッシュに新たに値を加える(stringの後にs32を考慮したい場合などに使用)
|
|
template<class T > |
static GX_FORCE_INLINE T | getReverseEndian16 (T value) |
| エンディアン変換した値を取得(16bit版)
|
|
template<class T > |
static GX_FORCE_INLINE T | getReverseEndian32 (T value) |
| エンディアン変換した値を取得(32bit版)
|
|
template<class T > |
static GX_FORCE_INLINE T | getReverseEndian64 (T value) |
| エンディアン変換した値を取得(64bit版)
|
|
template<class T > |
static GX_FORCE_INLINE T | getReverseEndian128 (T value) |
| エンディアン変換した値を取得(128bit版)
|
|
static GX_FORCE_INLINE u32 | getBitCount (u32 value) |
| 1の立っているビット数取得
|
|
template<class T > |
static GX_FORCE_INLINE b32 | isPowerOfTwo (T value) |
| 2のべき乗判定
|
|
template<class T > |
static GX_FORCE_INLINE b32 | isAlignment (T value, u32 alignment) |
| アライメント判定
|
|
template<class T > |
static GX_FORCE_INLINE b32 | isAlignmentFast (T value, u32 alignment) |
| アライメント判定(高速版 ※2のべき乗指定)
|
|
template<class T > |
static GX_FORCE_INLINE T | getRoundUp (T value, u32 alignment) |
| 数値切り上げ
|
|
template<class T > |
static GX_FORCE_INLINE T | getRoundDown (T value, u32 alignment) |
| 数値切り捨て
|
|
template<class T > |
static GX_FORCE_INLINE T | getRoundUpFast (T value, size_t alignment) |
| 数値切り上げ(高速版 ※2のべき乗指定)
|
|
template<class T > |
static GX_FORCE_INLINE T | getRoundDownFast (T value, u32 alignment) |
| 数値切り捨て(高速版 ※2のべき乗指定)
|
|
template<class T > |
static GX_FORCE_INLINE T | getRoundUpPowerOfTwo (T value) |
| 2のべき乗に切り上げ
|
|
static GX_FORCE_INLINE f32 | getFloor (f32 value) |
| GX用floor(f32用切捨て)
|
|
static GX_FORCE_INLINE f64 | getFloor (f64 value) |
| GX用floor(f64用切捨て)
|
|
static GX_FORCE_INLINE f32 | getCeil (f32 value) |
| GX用Ceil(f32用切上げ)
|
|
static GX_FORCE_INLINE f64 | getCeil (f64 value) |
| GX用Ceil(f64用切上げ)
|
|
static void | calculateSplineTangent (const GxVector3 &position0, const GxVector3 &position1, const GxVector3 &position2, const f32 time, GxVector3 &direct) |
| スプラインの接線方向を計算
|
|
static void | calculateSplinePosition (const GxVector3 &position0, const GxVector3 &position1, const GxVector3 &position2, const f32 time, GxVector3 &position) |
| スプラインの位置を計算
|
|
static void | calculateBezierTangent (const GxVector3 &position0, const GxVector3 &position1, const GxVector3 &position2, const GxVector3 &position3, const f32 time, GxVector3 &direct) |
| ベジェの接線方向を計算
|
|
static void | calculateBezierPosition (const GxVector3 &position0, const GxVector3 &position1, const GxVector3 &position2, const GxVector3 &position3, const f32 time, GxVector3 &position) |
| ベジエの位置を計算
|
|
template<class T > |
static void | geoCoordinatesToMeter (T longitude, T latitude, T centerLongitude, T centerLatitude, T &xMeter, T &zMeter) |
| 緯度経度からメートルに変換
|
|
static u32 | getRandom (u32 value) |
| 値未満の乱数を取得
|
|
static GX_FORCE_INLINE GxRtti & | __getStaticRtti (void) |
| Rttiの取得
|
|