FVector3

Inheritance: java.lang.Object

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

public final class FVector3 implements Struct<FVector3>, Serializable

具有三个分量的 float 向量。

构造函数

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

字段

字段描述
xx 分量。
yy 分量。
zy 分量。

方法

方法描述
add(FVector3 a, FVector3 b)+ 运算符重载
clone()
copyFrom(FVector3 src)
create(FVector3 v)显式转换运算符,将 FVector3 强制转换为 Vector3
cross(FVector3 rhs)两个向量的叉积
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:

参数类型描述
xfloat向量的 X 分量
yfloat向量的 Y 分量
zfloat向量的 Z 分量

FVector3(Vector3 vec)

public FVector3(Vector3 vec)

初始化 FVector3 的新实例。

Parameters:

参数类型描述
vecVector3双精度类型的 Vector3

FVector3(Vector4 vec)

public FVector3(Vector4 vec)

初始化 FVector4 的新实例。

Parameters:

参数类型描述
vecVector4双精度类型的 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:

参数类型描述
aFVector3第一个向量
bFVector3第二个向量

Returns: FVector3

clone()

public FVector3 clone()

克隆当前实例

Returns: FVector3

copyFrom(FVector3 src)

public void copyFrom(FVector3 src)

Parameters:

参数类型描述
srcFVector3

create(FVector3 v)

public static Vector3 create(FVector3 v)

显式转换运算符,将 FVector3 强制转换为 Vector3

Parameters:

参数类型描述
vFVector3单精度类型的 Vector3

Returns: Vector3

cross(FVector3 rhs)

public FVector3 cross(FVector3 rhs)

两个向量的叉积

Parameters:

参数类型描述
rhsFVector3右侧值。

Returns: FVector3 - Cross product of two FVector3s.

equals(Object obj)

public boolean equals(Object obj)

Parameters:

参数类型描述
objjava.lang.Object

Returns: 布尔

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:

参数类型描述
aFVector3第一个向量
bfloat第二个向量

Returns: FVector3 - The product of two vectors

negative(FVector3 a)

public static FVector3 negative(FVector3 a)

- 运算符重载

Parameters:

参数类型描述
aFVector3输入向量

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:

参数类型描述
aFVector3第一个向量
bFVector3第二个向量

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:

参数类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

参数类型描述
arg0long
arg1int