public final class FVector3 extends java.lang.Object implements com.aspose.threed.Struct<FVector3>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static FVector3 |
UNIT_SCALE
The unit scale vector with all components are all 1
|
float |
x
The x component.
|
float |
y
The y component.
|
float |
z
The y component.
|
static FVector3 |
ZERO
The Zero vector.
|
| Constructor and Description |
|---|
FVector3() |
FVector3(float x,
float y,
float z)
Initializes a new instance of the
FVector3. |
FVector3(Vector3 vec)
Initializes a new instance of the
FVector3. |
FVector3(Vector4 vec)
Initializes a new instance of the
FVector4. |
| Modifier and Type | Method and Description |
|---|---|
static FVector3 |
add(FVector3 a,
FVector3 b)
+ Operator overloading
|
FVector3 |
clone() |
void |
copyFrom(FVector3 src) |
static Vector3 |
create(FVector3 v)
Explicit conversion operator to cast FVector3 to Vector3
|
FVector3 |
cross(FVector3 rhs)
Cross product of two vectors
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
static FVector3 |
mul(FVector3 a,
float b)
* Operator overloading
|
static FVector3 |
negative(FVector3 a)
- Operator overloading
|
FVector3 |
normalize()
Normalizes this instance.
|
static FVector3 |
sub(FVector3 a,
FVector3 b)
- Operator overloading
|
java.lang.String |
toString()
Returns a string that represents the
FVector3 |
public static final FVector3 ZERO
public static final FVector3 UNIT_SCALE
public float x
public float y
public float z
public FVector3(float x,
float y,
float z)
FVector3.public FVector3()
public static Vector3 create(FVector3 v)
v - public java.lang.String toString()
FVector3toString in class java.lang.Objectpublic FVector3 normalize()
public FVector3 cross(FVector3 rhs)
rhs - Right hand side value.FVector3s.public FVector3 clone()
clone in interface com.aspose.threed.Struct<FVector3>clone in class java.lang.Objectpublic void copyFrom(FVector3 src)
copyFrom in interface com.aspose.threed.Struct<FVector3>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object