FVector3
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.csporter.helpers.Struct, java.io.Serializable
public final class FVector3 implements Struct<FVector3>, Serializable
A float vector with three components.
Constructors
Constructor | Description |
---|---|
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. |
FVector3() |
Fields
Field | Description |
---|---|
UNIT_SCALE | The unit scale vector with all components are all 1 |
x | The x component. |
y | The y component. |
z | The y component. |
Methods
Method | Description |
---|---|
add(FVector3 a, FVector3 b) | + Operator overloading |
clone() | |
copyFrom(FVector3 src) | |
create(FVector3 v) | Explicit conversion operator to cast FVector3 to Vector3 |
cross(FVector3 rhs) | Cross product of two vectors |
equals(Object obj) | |
getClass() | |
getOne() | The unit scale vector with all components are all 1 |
getZero() | The Zero vector. |
hashCode() | |
mul(FVector3 a, float b) | * Operator overloading |
negative(FVector3 a) | - Operator overloading |
normalize() | Normalizes this instance. |
notify() | |
notifyAll() | |
sub(FVector3 a, FVector3 b) | - Operator overloading |
toString() | Returns a string that represents the FVector3 |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
FVector3(float x, float y, float z)
public FVector3(float x, float y, float z)
Initializes a new instance of the FVector3.
Parameters:
Parameter | Type | Description |
---|---|---|
x | float | |
y | float | |
z | float |
FVector3(Vector3 vec)
public FVector3(Vector3 vec)
Initializes a new instance of the FVector3.
Parameters:
Parameter | Type | Description |
---|---|---|
vec | Vector3 |
FVector3(Vector4 vec)
public FVector3(Vector4 vec)
Initializes a new instance of the FVector4.
Parameters:
Parameter | Type | Description |
---|---|---|
vec | Vector4 |
FVector3()
public FVector3()
UNIT_SCALE
public static final FVector3 UNIT_SCALE
The unit scale vector with all components are all 1
x
public float x
The x component.
y
public float y
The y component.
z
public float z
The y component.
add(FVector3 a, FVector3 b)
public static FVector3 add(FVector3 a, FVector3 b)
+ Operator overloading
Parameters:
Parameter | Type | Description |
---|---|---|
a | FVector3 | |
b | FVector3 |
Returns: FVector3
clone()
public FVector3 clone()
Returns: FVector3
copyFrom(FVector3 src)
public void copyFrom(FVector3 src)
Parameters:
Parameter | Type | Description |
---|---|---|
src | FVector3 |
create(FVector3 v)
public static Vector3 create(FVector3 v)
Explicit conversion operator to cast FVector3 to Vector3
Parameters:
Parameter | Type | Description |
---|---|---|
v | FVector3 |
Returns: Vector3
cross(FVector3 rhs)
public FVector3 cross(FVector3 rhs)
Cross product of two vectors
Parameters:
Parameter | Type | Description |
---|---|---|
rhs | FVector3 | Right hand side value. |
Returns: FVector3 - Cross product of two FVector3s.
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
getOne()
public static FVector3 getOne()
The unit scale vector with all components are all 1
Returns: FVector3
getZero()
public static FVector3 getZero()
The Zero vector.
Returns: FVector3
hashCode()
public int hashCode()
Returns: int
mul(FVector3 a, float b)
public static FVector3 mul(FVector3 a, float b)
* Operator overloading
Parameters:
Parameter | Type | Description |
---|---|---|
a | FVector3 | |
b | float |
Returns: FVector3
negative(FVector3 a)
public static FVector3 negative(FVector3 a)
- Operator overloading
Parameters:
Parameter | Type | Description |
---|---|---|
a | FVector3 |
Returns: FVector3
normalize()
public FVector3 normalize()
Normalizes this instance.
Returns: FVector3 - Normalized vector.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
sub(FVector3 a, FVector3 b)
public static FVector3 sub(FVector3 a, FVector3 b)
- Operator overloading
Parameters:
Parameter | Type | Description |
---|---|---|
a | FVector3 | |
b | FVector3 |
Returns: FVector3
toString()
public String toString()
Returns a string that represents the FVector3
Returns: java.lang.String
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 |