FVector2

Inheritance: java.lang.Object

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

public final class FVector2 implements Struct<FVector2>, Serializable

具有两个分量的 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)检查两个向量是否相等
equals(Object obj)检查两个向量是否相等
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第一个向量
bFVector2第二个向量

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)

检查两个向量是否相等

Parameters:

参数类型描述
rhsFVector2

Returns: boolean - 如果所有分量相等则为 True。

equals(Object obj)

public boolean equals(Object obj)

检查两个向量是否相等

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第一个向量
bfloat第二个向量

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第一个向量
bFVector2第二个向量

Returns: boolean - 如果所有分量相等则为 True。

op_ne(FVector2 a, FVector2 b)

public static boolean op_ne(FVector2 a, FVector2 b)

!= Operator overloading

Parameters:

参数类型描述
aFVector2第一个向量
bFVector2第二个向量

Returns: boolean - 如果任意分量不同则为 True。

sub(FVector2 a, FVector2 b)

public static FVector2 sub(FVector2 a, FVector2 b)

- 运算符重载

Parameters:

参数类型描述
aFVector2第一个向量
bFVector2第二个向量

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