FVector2
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable
public final class FVector2 implements Struct<FVector2>, Serializable
2 要素の float ベクトルです。
コンストラクタ
| コンストラクタ | 説明 |
|---|---|
| FVector2(float x, float y) | FVector2 の新しいインスタンスを初期化します。 |
| FVector2(Vector2 vec) | FVector2 の新しいインスタンスを初期化します。 |
| FVector2() |
フィールド
| フィールド | 説明 |
|---|---|
| x | x 成分。 |
| y | y 成分。 |
メソッド
| メソッド | 説明 |
|---|---|
| add(FVector2 a, FVector2 b) | + 演算子のオーバーロード |
| clone() | |
| copyFrom(FVector2 src) | |
| create(FVector2 v) | FVector2 を Vector2 にキャストする明示的な変換演算子 |
| equals(FVector2 rhs) | 2つのベクトルが等しいか確認する |
| equals(Object obj) | 2つのベクトルが等しいか確認する |
| getClass() | |
| hashCode() | このインスタンスのハッシュコードを取得する |
| mul(FVector2 a, float b) | * 演算子のオーバーロード |
| notify() | |
| notifyAll() | |
| op_eq(FVector2 a, FVector2 b) | == 演算子のオーバーロード |
| op_ne(FVector2 a, FVector2 b) | != 演算子のオーバーロード |
| sub(FVector2 a, FVector2 b) | - 演算子のオーバーロード |
| toString() | FVector2 を表す文字列を返す |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
FVector2(float x, float y)
public FVector2(float x, float y)
FVector2 の新しいインスタンスを初期化します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| x | float | ベクトルの X 成分 |
| y | float | ベクトルの Y 成分 |
FVector2(Vector2 vec)
public FVector2(Vector2 vec)
FVector2 の新しいインスタンスを初期化します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| vec | Vector2 | double 型の Vector2 |
FVector2()
public FVector2()
x
public float x
x 成分。
y
public float y
y 成分。
add(FVector2 a, FVector2 b)
public static FVector2 add(FVector2 a, FVector2 b)
+ 演算子のオーバーロード
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| a | FVector2 | 最初のベクトル |
| b | FVector2 | 2番目のベクトル |
Returns: FVector2 - The sum of two vectors.
clone()
public FVector2 clone()
現在のインスタンスをクローンする
Returns: FVector2
copyFrom(FVector2 src)
public void copyFrom(FVector2 src)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| src | FVector2 |
create(FVector2 v)
public static Vector2 create(FVector2 v)
FVector2 を Vector2 にキャストする明示的な変換演算子
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| v | FVector2 | float 型の Vector 2。 |
Returns: Vector2
equals(FVector2 rhs)
public boolean equals(FVector2 rhs)
2つのベクトルが等しいか確認する
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| rhs | FVector2 |
Returns: boolean - すべての成分が等しい場合は true。
equals(Object obj)
public boolean equals(Object obj)
2つのベクトルが等しいか確認する
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean - 入力がベクトルであり、すべての成分が等しい場合は true。
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public int hashCode()
このインスタンスのハッシュコードを取得する
Returns: int - ベクトルのハッシュコード。
mul(FVector2 a, float b)
public static FVector2 mul(FVector2 a, float b)
* 演算子のオーバーロード
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| a | FVector2 | 最初のベクトル |
| b | float | 2番目のベクトル |
Returns: FVector2 - The product of two vectors.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
op_eq(FVector2 a, FVector2 b)
public static boolean op_eq(FVector2 a, FVector2 b)
== 演算子のオーバーロード
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| a | FVector2 | 最初のベクトル |
| b | FVector2 | 2番目のベクトル |
Returns: boolean - すべての成分が等しい場合は true。
op_ne(FVector2 a, FVector2 b)
public static boolean op_ne(FVector2 a, FVector2 b)
!= Operator overloading
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| a | FVector2 | 最初のベクトル |
| b | FVector2 | 2番目のベクトル |
Returns: boolean - 任意の成分が異なる場合は true。
sub(FVector2 a, FVector2 b)
public static FVector2 sub(FVector2 a, FVector2 b)
- 演算子のオーバーロード
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| a | FVector2 | 最初のベクトル |
| b | FVector2 | 2番目のベクトル |
Returns: FVector2 - The difference of two vectors.
toString()
public String toString()
FVector2 を表す文字列を返す
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 |