FVector4

Inheritance: java.lang.Object

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

public final class FVector4 implements Struct<FVector4>, Serializable

具有四个分量的 float 向量。

构造函数

构造函数描述
FVector4(float x, float y, float z, float w)初始化 FVector4 的新实例。
FVector4(float x, float y, float z)初始化 FVector4 的新实例。
FVector4(Color color)初始化 FVector4 的新实例。
FVector4(Vector4 vec)初始化 FVector4 的新实例。
FVector4(Vector3 vec)初始化 FVector4 的新实例。
FVector4(Vector3 vec, float w)初始化 FVector4 的新实例。
FVector4()

字段

字段描述
ww 分量。
xx 分量。
yy 分量。
zz 分量。

方法

方法描述
add(FVector4 lhs, FVector4 rhs)运算符重载 +
clone()
copyFrom(FVector4 src)
create(FVector4 v)显式转换运算符,将 Vector4 转换为 FVector4
equals(Object obj)
getClass()
hashCode()
mul(FVector4 lhs, FVector4 rhs)运算符重载 *
notify()
notifyAll()
sub(FVector4 lhs, FVector4 rhs)针对 -(减号)的运算符重载
toString()返回表示 FVector4 的字符串
wait()
wait(long arg0)
wait(long arg0, int arg1)

FVector4(float x, float y, float z, float w)

public FVector4(float x, float y, float z, float w)

初始化 FVector4 的新实例。

Parameters:

参数类型描述
xfloatX 分量
yfloatY 分量
zfloatZ 分量
wfloatW 分量

FVector4(float x, float y, float z)

public FVector4(float x, float y, float z)

初始化 FVector4 的新实例。

Parameters:

参数类型描述
xfloatX 分量
yfloatY 分量
zfloatZ 分量

FVector4(Color color)

public FVector4(Color color)

初始化 FVector4 的新实例。

Parameters:

参数类型描述
颜色java.awt.Color

FVector4(Vector4 vec)

public FVector4(Vector4 vec)

初始化 FVector4 的新实例。

Parameters:

参数类型描述
vecVector4

FVector4(Vector3 vec)

public FVector4(Vector3 vec)

初始化 FVector4 的新实例。

Parameters:

参数类型描述
vecVector3

FVector4(Vector3 vec, float w)

public FVector4(Vector3 vec, float w)

初始化 FVector4 的新实例。

Parameters:

参数类型描述
vecVector3
wfloat

FVector4()

public FVector4()

w

public float w

w 分量。

x

public float x

x 分量。

y

public float y

y 分量。

z

public float z

z 分量。

add(FVector4 lhs, FVector4 rhs)

public static FVector4 add(FVector4 lhs, FVector4 rhs)

运算符重载 +

Parameters:

参数类型描述
lhsFVector4左向量
rhsFVector4右向量

Returns: FVector4 - Result vector

clone()

public FVector4 clone()

克隆当前实例

Returns: FVector4

copyFrom(FVector4 src)

public void copyFrom(FVector4 src)

Parameters:

参数类型描述
srcFVector4

create(FVector4 v)

public static Vector4 create(FVector4 v)

显式转换运算符,将 Vector4 转换为 FVector4

Parameters:

参数类型描述
vFVector4

Returns: Vector4

equals(Object obj)

public boolean equals(Object obj)

Parameters:

参数类型描述
objjava.lang.Object

Returns: 布尔

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public int hashCode()

Returns: int

mul(FVector4 lhs, FVector4 rhs)

public static FVector4 mul(FVector4 lhs, FVector4 rhs)

运算符重载 *

Parameters:

参数类型描述
lhsFVector4左向量
rhsFVector4右向量

Returns: FVector4 - Result vector

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

sub(FVector4 lhs, FVector4 rhs)

public static FVector4 sub(FVector4 lhs, FVector4 rhs)

针对 -(减号)的运算符重载

Parameters:

参数类型描述
lhsFVector4左向量
rhsFVector4右向量

Returns: FVector4 - Result vector

toString()

public String toString()

返回表示 FVector4 的字符串

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