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() |
字段
| 字段 | 描述 |
|---|---|
| w | w 分量。 |
| x | x 分量。 |
| y | y 分量。 |
| z | z 分量。 |
方法
| 方法 | 描述 |
|---|---|
| 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:
| 参数 | 类型 | 描述 |
|---|---|---|
| x | float | X 分量 |
| y | float | Y 分量 |
| z | float | Z 分量 |
| w | float | W 分量 |
FVector4(float x, float y, float z)
public FVector4(float x, float y, float z)
初始化 FVector4 的新实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| x | float | X 分量 |
| y | float | Y 分量 |
| z | float | Z 分量 |
FVector4(Color color)
public FVector4(Color color)
初始化 FVector4 的新实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 颜色 | java.awt.Color |
FVector4(Vector4 vec)
public FVector4(Vector4 vec)
初始化 FVector4 的新实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| vec | Vector4 |
FVector4(Vector3 vec)
public FVector4(Vector3 vec)
初始化 FVector4 的新实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| vec | Vector3 |
FVector4(Vector3 vec, float w)
public FVector4(Vector3 vec, float w)
初始化 FVector4 的新实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| vec | Vector3 | |
| w | float |
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:
| 参数 | 类型 | 描述 |
|---|---|---|
| lhs | FVector4 | 左向量 |
| rhs | FVector4 | 右向量 |
Returns: FVector4 - Result vector
clone()
public FVector4 clone()
克隆当前实例
Returns: FVector4
copyFrom(FVector4 src)
public void copyFrom(FVector4 src)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| src | FVector4 |
create(FVector4 v)
public static Vector4 create(FVector4 v)
显式转换运算符,将 Vector4 转换为 FVector4
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| v | FVector4 |
Returns: Vector4
equals(Object obj)
public boolean equals(Object obj)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| obj | java.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:
| 参数 | 类型 | 描述 |
|---|---|---|
| lhs | FVector4 | 左向量 |
| rhs | FVector4 | 右向量 |
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:
| 参数 | 类型 | 描述 |
|---|---|---|
| lhs | FVector4 | 左向量 |
| rhs | FVector4 | 右向量 |
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:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |