Vector4

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Comparable, com.aspose.threed.Struct, java.io.Serializable

public final class Vector4 implements Comparable<Vector4>, Struct<Vector4>, Serializable

4 つの成分を持つベクトル。

コンストラクタ

コンストラクタ説明
Vector4(Vector3 vec, double w)新しい Vector4 構造体のインスタンスを初期化します。
Vector4(Vector3 vec)新しい Vector4 構造体のインスタンスを初期化します。
Vector4(FVector4 vec)新しい Vector4 構造体のインスタンスを初期化します。
Vector4(double x, double y, double z)新しい Vector4 構造体のインスタンスを初期化します。
Vector4(double x, double y, double z, double w)新しい Vector4 構造体のインスタンスを初期化します。
Vector4()

フィールド

フィールド説明
ww コンポーネント。
xx 成分。
yy 成分。
zz 成分。

メソッド

メソッド説明
add(Vector4 lhs, Vector4 rhs)+ の演算子オーバーロード
clone()
compareTo(Vector4 other)現在のベクトルを別のインスタンスと比較します。
copyFrom(Vector4 src)
create(Vector4 v)Vector4 を FVector4 にキャストする明示的変換演算子
equals(Object obj)2つのベクトルが等しいか確認する
getClass()
hashCode()このベクトルのハッシュコードを取得します
mul(Vector4 lhs, Vector4 rhs)* の演算子オーバーロード
mul(Vector4 lhs, double rhs)* の演算子オーバーロード
notify()
notifyAll()
set(double newX, double newY, double newZ)ベクトルの xyz 成分を一度に設定し、w は 1 に設定されます
set(double newX, double newY, double newZ, double newW)ベクトルのすべての成分を一度に設定します
sub(Vector4 lhs, Vector4 rhs)「-」(マイナス) の演算子オーバーロード
toString()現在の Vector4 を表す java.lang.String を返します。
wait()
wait(long arg0)
wait(long arg0, int arg1)

Vector4(Vector3 vec, double w)

public Vector4(Vector3 vec, double w)

新しい Vector4 構造体のインスタンスを初期化します。

Parameters:

パラメーター説明
vecVector3Vec.
wdouble幅です。

Vector4(Vector3 vec)

public Vector4(Vector3 vec)

新しい Vector4 構造体のインスタンスを初期化します。

Parameters:

パラメーター説明
vecVector3Vec.

Vector4(FVector4 vec)

public Vector4(FVector4 vec)

新しい Vector4 構造体のインスタンスを初期化します。

Parameters:

パラメーター説明
vecFVector4Vec.

Vector4(double x, double y, double z)

public Vector4(double x, double y, double z)

新しい Vector4 構造体のインスタンスを初期化します。

Parameters:

パラメーター説明
xdoublex 座標。
ydoubley 座標。
zdoublez 座標。

Vector4(double x, double y, double z, double w)

public Vector4(double x, double y, double z, double w)

新しい Vector4 構造体のインスタンスを初期化します。

Parameters:

パラメーター説明
xdoublex 座標。
ydoubley 座標。
zdoublez 座標。
wdouble幅です。

Vector4()

public Vector4()

w

public double w

w コンポーネント。

x

public double x

x 成分。

y

public double y

y 成分。

z

public double z

z 成分。

add(Vector4 lhs, Vector4 rhs)

public static Vector4 add(Vector4 lhs, Vector4 rhs)
  • の演算子オーバーロード

Parameters:

パラメーター説明
lhsVector4左ベクトル
rhsVector4右ベクトル

Returns: Vector4 - Result vector

clone()

public Vector4 clone()

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

Returns: Vector4

compareTo(Vector4 other)

public int compareTo(Vector4 other)

現在のベクトルを別のインスタンスと比較します。

Parameters:

パラメーター説明
otherVector4

Returns: int

copyFrom(Vector4 src)

public void copyFrom(Vector4 src)

Parameters:

パラメーター説明
srcVector4

create(Vector4 v)

public static FVector4 create(Vector4 v)

Vector4 を FVector4 にキャストする明示的変換演算子

Parameters:

パラメーター説明
vVector4

Returns: FVector4

equals(Object obj)

public boolean equals(Object obj)

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

Parameters:

パラメーター説明
objjava.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public int hashCode()

このベクトルのハッシュコードを取得します

Returns: int

mul(Vector4 lhs, Vector4 rhs)

public static Vector4 mul(Vector4 lhs, Vector4 rhs)

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

Parameters:

パラメーター説明
lhsVector4左ベクトル
rhsVector4右ベクトル

Returns: Vector4 - Result vector

mul(Vector4 lhs, double rhs)

public static Vector4 mul(Vector4 lhs, double rhs)

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

Parameters:

パラメーター説明
lhsVector4左ベクトル
rhsdouble右側の double 値

Returns: Vector4 - Result vector

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

set(double newX, double newY, double newZ)

public void set(double newX, double newY, double newZ)

ベクトルの xyz 成分を一度に設定し、w は 1 に設定されます

Parameters:

パラメーター説明
newXdouble新しい X 成分です。
newYdouble新しい Y 成分です。
newZdouble新しい Z 成分です。

set(double newX, double newY, double newZ, double newW)

public void set(double newX, double newY, double newZ, double newW)

ベクトルのすべての成分を一度に設定します

Parameters:

パラメーター説明
newXdouble新しい X 成分です。
newYdouble新しい Y 成分です。
newZdouble新しい Z 成分です。
newWdoubleNew W component.

sub(Vector4 lhs, Vector4 rhs)

public static Vector4 sub(Vector4 lhs, Vector4 rhs)

「-」(マイナス) の演算子オーバーロード

Parameters:

パラメーター説明
lhsVector4左ベクトル
rhsVector4右ベクトル

Returns: Vector4 - Result vector

toString()

public String toString()

現在の Vector4 を表す java.lang.String を返します。

Returns: java.lang.String - 現在の Vector4 を表す 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