FVector3
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable
public final class FVector3 implements Struct<FVector3>, Serializable
3 要素の float ベクトルです。
コンストラクタ
| コンストラクタ | 説明 |
|---|---|
| FVector3(float x, float y, float z) | 新しい FVector3 のインスタンスを初期化します。 |
| FVector3(Vector3 vec) | 新しい FVector3 のインスタンスを初期化します。 |
| FVector3(Vector4 vec) | FVector4 の新しいインスタンスを初期化します。 |
| FVector3() |
フィールド
| フィールド | 説明 |
|---|---|
| x | x 成分。 |
| y | y 成分。 |
| z | y 成分。 |
メソッド
| メソッド | 説明 |
|---|---|
| add(FVector3 a, FVector3 b) | + 演算子のオーバーロード |
| clone() | |
| copyFrom(FVector3 src) | |
| create(FVector3 v) | FVector3 を Vector3 にキャストする明示的変換演算子 |
| cross(FVector3 rhs) | 2つのベクトルの外積 |
| equals(Object obj) | |
| getClass() | |
| getOne() | すべての成分が 1 の単位スケールベクトル |
| getZero() | ゼロベクトルです。 |
| hashCode() | |
| mul(FVector3 a, float b) | * 演算子オーバーロード |
| negative(FVector3 a) | - 演算子のオーバーロード |
| normalize() | このインスタンスを正規化します。 |
| notify() | |
| notifyAll() | |
| sub(FVector3 a, FVector3 b) | - 演算子のオーバーロード |
| toString() | FVector3 を表す文字列を返します |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
FVector3(float x, float y, float z)
public FVector3(float x, float y, float z)
新しい FVector3 のインスタンスを初期化します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| x | float | ベクトルの X 成分 |
| y | float | ベクトルの Y 成分 |
| z | float | ベクトルの Z 成分 |
FVector3(Vector3 vec)
public FVector3(Vector3 vec)
新しい FVector3 のインスタンスを初期化します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| vec | Vector3 | double 型の Vector3 |
FVector3(Vector4 vec)
public FVector3(Vector4 vec)
FVector4 の新しいインスタンスを初期化します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| vec | Vector4 | double 型の Vector4 |
FVector3()
public FVector3()
x
public float x
x 成分。
y
public float y
y 成分。
z
public float z
y 成分。
add(FVector3 a, FVector3 b)
public static FVector3 add(FVector3 a, FVector3 b)
+ 演算子のオーバーロード
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| a | FVector3 | 最初のベクトル |
| b | FVector3 | 2番目のベクトル |
Returns: FVector3
clone()
public FVector3 clone()
現在のインスタンスをクローンする
Returns: FVector3
copyFrom(FVector3 src)
public void copyFrom(FVector3 src)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| src | FVector3 |
create(FVector3 v)
public static Vector3 create(FVector3 v)
FVector3 を Vector3 にキャストする明示的変換演算子
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| v | FVector3 | float 型の Vector3 |
Returns: Vector3
cross(FVector3 rhs)
public FVector3 cross(FVector3 rhs)
2つのベクトルの外積
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| rhs | FVector3 | 右側の値。 |
Returns: FVector3 - Cross product of two FVector3s.
equals(Object obj)
public boolean equals(Object obj)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getOne()
public static FVector3 getOne()
すべての成分が 1 の単位スケールベクトル
Returns: FVector3 - The unit scale vector with all components are all 1
getZero()
public static FVector3 getZero()
ゼロベクトルです。
Returns: FVector3 - The Zero vector.
hashCode()
public int hashCode()
Returns: int
mul(FVector3 a, float b)
public static FVector3 mul(FVector3 a, float b)
* 演算子オーバーロード
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| a | FVector3 | 最初のベクトル |
| b | float | 2番目のベクトル |
Returns: FVector3 - The product of two vectors
negative(FVector3 a)
public static FVector3 negative(FVector3 a)
- 演算子のオーバーロード
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| a | FVector3 | 入力ベクトル |
Returns: FVector3 - The negative vector
normalize()
public FVector3 normalize()
このインスタンスを正規化します。
Returns: FVector3 - Normalized vector.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
sub(FVector3 a, FVector3 b)
public static FVector3 sub(FVector3 a, FVector3 b)
- 演算子のオーバーロード
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| a | FVector3 | 最初のベクトル |
| b | FVector3 | 2番目のベクトル |
Returns: FVector3 - The difference of two vectors
toString()
public String toString()
FVector3 を表す文字列を返します
Returns: java.lang.String - このベクトルの文字列表現。
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | long | |
| arg1 | int |