FVector4
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable
public final class FVector4 implements Struct<FVector4>, Serializable
A float vector with four components.
Constructors
| Constructor | Description |
|---|---|
| FVector4(float x, float y, float z, float w) | Initializes a new instance of the FVector4. |
| FVector4(float x, float y, float z) | Initializes a new instance of the FVector4. |
| FVector4(Color color) | Initializes a new instance of the FVector4. |
| FVector4(Vector4 vec) | Initializes a new instance of the FVector4. |
| FVector4(Vector3 vec) | Initializes a new instance of the FVector4. |
| FVector4(Vector3 vec, float w) | Initializes a new instance of the FVector4. |
| FVector4() |
Fields
| Field | Description |
|---|---|
| w | The w component. |
| x | The x component. |
| y | The y component. |
| z | The z component. |
Methods
| Method | Description |
|---|---|
| add(FVector4 lhs, FVector4 rhs) | Operator overloading for + |
| clone() | |
| copyFrom(FVector4 src) | |
| create(FVector4 v) | Explicit conversion operator to cast Vector4 to FVector4 |
| equals(Object obj) | |
| getClass() | |
| hashCode() | |
| mul(FVector4 lhs, FVector4 rhs) | Operator overloading for * |
| notify() | |
| notifyAll() | |
| sub(FVector4 lhs, FVector4 rhs) | Operator overloading for - (minus) |
| toString() | Returns a string that represents the 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)
Initializes a new instance of the FVector4.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| x | float | X component |
| y | float | Y component |
| z | float | Z component |
| w | float | W component |
FVector4(float x, float y, float z)
public FVector4(float x, float y, float z)
Initializes a new instance of the FVector4.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| x | float | X component |
| y | float | Y component |
| z | float | Z component |
FVector4(Color color)
public FVector4(Color color)
Initializes a new instance of the FVector4.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| color | java.awt.Color |
FVector4(Vector4 vec)
public FVector4(Vector4 vec)
Initializes a new instance of the FVector4.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| vec | Vector4 |
FVector4(Vector3 vec)
public FVector4(Vector3 vec)
Initializes a new instance of the FVector4.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| vec | Vector3 |
FVector4(Vector3 vec, float w)
public FVector4(Vector3 vec, float w)
Initializes a new instance of the FVector4.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| vec | Vector3 | |
| w | float |
FVector4()
public FVector4()
w
public float w
The w component.
x
public float x
The x component.
y
public float y
The y component.
z
public float z
The z component.
add(FVector4 lhs, FVector4 rhs)
public static FVector4 add(FVector4 lhs, FVector4 rhs)
Operator overloading for +
Parameters:
| Parameter | Type | Description |
|---|---|---|
| lhs | FVector4 | The left vector |
| rhs | FVector4 | The right vector |
Returns: FVector4 - Result vector
clone()
public FVector4 clone()
Clone current instance
Returns: FVector4
copyFrom(FVector4 src)
public void copyFrom(FVector4 src)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| src | FVector4 |
create(FVector4 v)
public static Vector4 create(FVector4 v)
Explicit conversion operator to cast Vector4 to FVector4
Parameters:
| Parameter | Type | Description |
|---|---|---|
| v | FVector4 |
Returns: Vector4
equals(Object obj)
public boolean equals(Object obj)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean
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)
Operator overloading for *
Parameters:
| Parameter | Type | Description |
|---|---|---|
| lhs | FVector4 | The left vector |
| rhs | FVector4 | The right vector |
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)
Operator overloading for - (minus)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| lhs | FVector4 | The left vector |
| rhs | FVector4 | The right vector |
Returns: FVector4 - Result vector
toString()
public String toString()
Returns a string that represents the FVector4
Returns: java.lang.String - The string representation of current vector.
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |