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()

フィールド

フィールド説明
xx 成分。
yy 成分。

メソッド

メソッド説明
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:

パラメーター説明
xfloatベクトルの X 成分
yfloatベクトルの Y 成分

FVector2(Vector2 vec)

public FVector2(Vector2 vec)

FVector2 の新しいインスタンスを初期化します。

Parameters:

パラメーター説明
vecVector2double 型の 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:

パラメーター説明
aFVector2最初のベクトル
bFVector22番目のベクトル

Returns: FVector2 - The sum of two vectors.

clone()

public FVector2 clone()

現在のインスタンスをクローンする

Returns: FVector2

copyFrom(FVector2 src)

public void copyFrom(FVector2 src)

Parameters:

パラメーター説明
srcFVector2

create(FVector2 v)

public static Vector2 create(FVector2 v)

FVector2 を Vector2 にキャストする明示的な変換演算子

Parameters:

パラメーター説明
vFVector2float 型の Vector 2。

Returns: Vector2

equals(FVector2 rhs)

public boolean equals(FVector2 rhs)

2つのベクトルが等しいか確認する

Parameters:

パラメーター説明
rhsFVector2

Returns: boolean - すべての成分が等しい場合は true。

equals(Object obj)

public boolean equals(Object obj)

2つのベクトルが等しいか確認する

Parameters:

パラメーター説明
objjava.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:

パラメーター説明
aFVector2最初のベクトル
bfloat2番目のベクトル

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:

パラメーター説明
aFVector2最初のベクトル
bFVector22番目のベクトル

Returns: boolean - すべての成分が等しい場合は true。

op_ne(FVector2 a, FVector2 b)

public static boolean op_ne(FVector2 a, FVector2 b)

!= Operator overloading

Parameters:

パラメーター説明
aFVector2最初のベクトル
bFVector22番目のベクトル

Returns: boolean - 任意の成分が異なる場合は true。

sub(FVector2 a, FVector2 b)

public static FVector2 sub(FVector2 a, FVector2 b)

- 演算子のオーバーロード

Parameters:

パラメーター説明
aFVector2最初のベクトル
bFVector22番目のベクトル

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:

パラメーター説明
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

パラメーター説明
arg0long
arg1int