public final class FVector4 extends java.lang.Object implements java.lang.Comparable<FVector4>, Struct<FVector4>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
float |
w
The w component.
|
float |
x
The x component.
|
float |
y
The y component.
|
float |
z
The z component.
|
| Constructor and Description |
|---|
FVector4() |
FVector4(java.awt.Color color)
Initializes a new instance of the
FVector4. |
FVector4(float x,
float y,
float z)
Initializes a new instance of the
FVector4. |
FVector4(float x,
float y,
float z,
float w)
Initializes a new instance of the
FVector4. |
FVector4(FVector3 xyz,
float w)
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(Vector4 vec)
Initializes a new instance of the
FVector4. |
| Modifier and Type | Method and Description |
|---|---|
static FVector4 |
add(FVector4 lhs,
FVector4 rhs)
Operator overloading for +
|
FVector4 |
clone()
Clone current instance
|
int |
compareTo(FVector4 other)
Compare current vector to another instance.
|
void |
copyFrom(FVector4 src)
Copy internal state from argument t
|
static Vector4 |
create(FVector4 v)
Explicit conversion operator to cast Vector4 to FVector4
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
static FVector4 |
mul(float lhs,
FVector4 rhs)
Operator overloading for *
|
static FVector4 |
mul(FVector4 lhs,
float rhs)
Operator overloading for *
|
static FVector4 |
mul(FVector4 lhs,
FVector4 rhs)
Operator overloading for *
|
static FVector4 |
sub(FVector4 lhs,
FVector4 rhs)
Operator overloading for - (minus)
|
java.lang.String |
toString()
Returns a string that represents the
FVector4 |
public float x
public float y
public float z
public float w
public FVector4(float x,
float y,
float z,
float w)
FVector4.x - X componenty - Y componentz - Z componentw - W componentpublic FVector4(FVector3 xyz, float w)
FVector4.xyz - XYZ componentw - W componentpublic FVector4(float x,
float y,
float z)
FVector4.x - X componenty - Y componentz - Z componentpublic FVector4(java.awt.Color color)
FVector4.public FVector4()
public static Vector4 create(FVector4 v)
public static FVector4 add(FVector4 lhs, FVector4 rhs)
lhs - The left vectorrhs - The right vectorpublic static FVector4 sub(FVector4 lhs, FVector4 rhs)
lhs - The left vectorrhs - The right vectorpublic static FVector4 mul(FVector4 lhs, FVector4 rhs)
lhs - The left vectorrhs - The right vectorpublic static FVector4 mul(FVector4 lhs, float rhs)
lhs - The left vectorrhs - The right vectorpublic static FVector4 mul(float lhs, FVector4 rhs)
lhs - The left vectorrhs - The right vectorpublic java.lang.String toString()
FVector4toString in class java.lang.Objectpublic int compareTo(FVector4 other)
compareTo in interface java.lang.Comparable<FVector4>public void copyFrom(FVector4 src)
Structpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object