4次元浮動小数点ベクトルクラス
More...
#include <Vector4.h>
|
static Float32 | Dot (const Vector4 &lv, const Vector4 &rv) |
| 二つのベクトルの内積を返します More...
|
|
static Vector4 | Cross (const Vector4 &lv, const Vector4 &rv) |
| 二つのベクトルの外積を返します More...
|
|
static Vector4 | Rand (void) |
| 乱数( 0.0f〜1.0f )を取得します More...
|
|
static Vector4 | Rand (const Vector4 &v) |
| 乱数( 0.0f〜v )を取得します More...
|
|
static Vector4 | Rand (const Vector4 &v0, const Vector4 &v1) |
| 乱数( v0〜v1 )を取得します More...
|
|
static Vector4 | Min (const Vector4 &v0, const Vector4 &v1) |
| 二つのベクトルの最小値を取得します More...
|
|
static Vector4 | Max (const Vector4 &v0, const Vector4 &v1) |
| 二つのベクトルの最大値を取得します More...
|
|
static Vector4 | Lerp (const Vector4 &vs, const Vector4 &ve, Float32 t) |
| 線形補間をします More...
|
|
static Vector4 | Slerp (const Vector4 &vs, const Vector4 &ve, Float32 t) |
| 球面線形補間をします More...
|
|
static const Vector4 & | Zero (void) |
| 初期値( 0.0, 0.0, 0.0, 1.0 )を取得します More...
|
|
static const Vector4 & | XAxis (void) |
| X軸( 1.0, 0.0, 0.0, 1.0 )を取得します More...
|
|
static const Vector4 & | YAxis (void) |
| Y軸( 0.0, 1.0, 0.0, 1.0 )を取得します More...
|
|
static const Vector4 & | ZAxis (void) |
| Z軸( 0.0, 0.0, 1.0, 1.0 )を取得します More...
|
|
Mix::Vector4::Vector4 |
( |
void |
| ) |
|
Mix::Vector4::Vector4 |
( |
const Vector4 & |
v | ) |
|
Mix::Vector4::Vector4 |
( |
const Vector3 & |
v | ) |
|
コンストラクタ
- Parameters
-
[in] | vx | X座標 |
[in] | vy | Y座標 |
[in] | vz | Z座標 |
コンストラクタ
- Parameters
-
[in] | vx | X座標 |
[in] | vy | Y座標 |
[in] | vz | Z座標 |
[in] | vw | W座標 |
等価比較
- Parameters
-
- Returns
- 値が等しい場合は True を返します
等価比較
- Parameters
-
- Returns
- 値が等しくない場合は True を返します
代入
- Parameters
-
- Returns
- 代入されたベクトルを返します
代入
- Parameters
-
- Returns
- 代入されたベクトルを返します
代入加算
- Parameters
-
- Returns
- 代入加算されたベクトルを返します
代入減算
- Parameters
-
- Returns
- 代入減算されたベクトルを返します
代入乗算
- Parameters
-
- Returns
- 代入乗算されたベクトルを返します
代入乗算
- Parameters
-
- Returns
- 代入乗算されたベクトルを返します
代入除算
- Parameters
-
- Returns
- 代入除算されたベクトルを返します
代入除算
- Parameters
-
- Returns
- 代入除算されたベクトルを返します
加算
- Parameters
-
- Returns
- 加算されたベクトルを返します
減算
- Parameters
-
- Returns
- 減算されたベクトルを返します
乗算
- Parameters
-
- Returns
- 乗算されたベクトルを返します
乗算
- Parameters
-
- Returns
- 乗算されたベクトルを返します
除算
- Parameters
-
- Returns
- 除算されたベクトルを返します
除算
- Parameters
-
- Returns
- 除算されたベクトルを返します
Vector4 Mix::Vector4::operator+ |
( |
void |
| ) |
const |
正の符号として扱います
- Returns
- ベクトルを返します
Vector4 Mix::Vector4::operator- |
( |
void |
| ) |
const |
符号を反転します
- Returns
- 符号を反転したベクトルを返します
ベクトルを設定します
- Parameters
-
[in] | vx | X座標 |
[in] | vy | Y座標 |
[in] | vz | Z座標 |
[in] | vw | W座標 |
Float32 Mix::Vector4::Normalize |
( |
void |
| ) |
|
正規化します
- Returns
- 正規化する前のベクトルの長さを返します
正規化したベクトルを取得します
- Parameters
-
[out] | pLength | 正規化する前のベクトルの長さ |
- Returns
- 正規化したベクトルを表す Mix::Vector4 クラスを返します
void Mix::Vector4::Saturate |
( |
void |
| ) |
|
Vector4 Mix::Vector4::ToSaturate |
( |
void |
| ) |
const |
0.0f〜1.0f に飽和したベクトルを取得します
- Returns
- 飽和したベクトルを表す Mix::Vector4 クラスを返します
Float32 Mix::Vector4::GetLengthSqr |
( |
void |
| ) |
const |
長さの2乗を取得します
- Returns
- 長さの2乗を返します
Float32 Mix::Vector4::GetLength |
( |
void |
| ) |
const |
Float32 Mix::Vector4::GetLengthF |
( |
void |
| ) |
const |
長さを取得します
- Returns
- 長さを返します
- Note
- 平方根を求める際に Mix::SqrtF を使用しています
二つのベクトルの内積を返します
- Parameters
-
- Returns
- 内積を返します
二つのベクトルの外積を返します
- Parameters
-
- Returns
- 外積を返します
static Vector4 Mix::Vector4::Rand |
( |
void |
| ) |
|
|
static |
乱数( 0.0f〜v )を取得します
- Parameters
-
[in] | v | 乱数の範囲を表す x::Vector4 クラス |
- Returns
- 乱数を表す Mix::Vector4 クラスを返します
乱数( v0〜v1 )を取得します
- Parameters
-
- Returns
- 乱数を表す Mix::Vector4 クラスを返します
二つのベクトルの最小値を取得します
- Parameters
-
- Returns
- ベクトルの最小値を表す Mix::Vector4 クラスを返します
二つのベクトルの最大値を取得します
- Parameters
-
- Returns
- ベクトルの最大値を表す Mix::Vector4 クラスを返します
線形補間をします
- Parameters
-
- Returns
- 線形補間されたベクトルを表す Mix::Vector4 クラスを返します
球面線形補間をします
- Parameters
-
- Returns
- 補間されたベクトルを表す Mix::Vector4 を返します
static const Vector4& Mix::Vector4::Zero |
( |
void |
| ) |
|
|
inlinestatic |
初期値( 0.0, 0.0, 0.0, 1.0 )を取得します
- Returns
- 初期値を表す Mix::Vector4 クラスを返します
static const Vector4& Mix::Vector4::XAxis |
( |
void |
| ) |
|
|
inlinestatic |
X軸( 1.0, 0.0, 0.0, 1.0 )を取得します
- Returns
- X軸を表す Mix::Vector4 クラスを返します
static const Vector4& Mix::Vector4::YAxis |
( |
void |
| ) |
|
|
inlinestatic |
Y軸( 0.0, 1.0, 0.0, 1.0 )を取得します
- Returns
- Y軸を表す Mix::Vector4 クラスを返します
static const Vector4& Mix::Vector4::ZAxis |
( |
void |
| ) |
|
|
inlinestatic |
Z軸( 0.0, 0.0, 1.0, 1.0 )を取得します
- Returns
- Z軸を表す Mix::Vector4 クラスを返します
乗算
- Parameters
-
- Returns
- 乗算されたベクトルを返します
除算
- Parameters
-
- Returns
- 除算されたベクトルを返します
The documentation for this class was generated from the following file: