FVector3

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable

public final class FVector3 implements Struct<FVector3>, Serializable

A float vector with three components.

Constructors

ConstructorDescription
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

FieldDescription
xThe x component.
yThe y component.
zThe y component.

Methods

MethodDescription
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:

ParameterTypeDescription
xfloatX component of the vector
yfloatY component of the vector
zfloatZ component of the vector

FVector3(Vector3 vec)

public FVector3(Vector3 vec)

Initializes a new instance of the FVector3.

Parameters:

ParameterTypeDescription
vecVector3Vector3 in double type

FVector3(Vector4 vec)

public FVector3(Vector4 vec)

Initializes a new instance of the FVector4.

Parameters:

ParameterTypeDescription
vecVector4Vector4 in double type

FVector3()

public FVector3()

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:

ParameterTypeDescription
aFVector3First vector
bFVector3Second vector

Returns: FVector3

clone()

public FVector3 clone()

Clone current instance

Returns: FVector3

copyFrom(FVector3 src)

public void copyFrom(FVector3 src)

Parameters:

ParameterTypeDescription
srcFVector3

create(FVector3 v)

public static Vector3 create(FVector3 v)

Explicit conversion operator to cast FVector3 to Vector3

Parameters:

ParameterTypeDescription
vFVector3Vector3 in float type

Returns: Vector3

cross(FVector3 rhs)

public FVector3 cross(FVector3 rhs)

Cross product of two vectors

Parameters:

ParameterTypeDescription
rhsFVector3Right hand side value.

Returns: FVector3 - Cross product of two FVector3s.

equals(Object obj)

public boolean equals(Object obj)

Parameters:

ParameterTypeDescription
objjava.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 - The unit scale vector with all components are all 1

getZero()

public static FVector3 getZero()

The Zero vector.

Returns: FVector3 - The Zero vector.

hashCode()

public int hashCode()

Returns: int

mul(FVector3 a, float b)

public static FVector3 mul(FVector3 a, float b)

* Operator overloading

Parameters:

ParameterTypeDescription
aFVector3First vector
bfloatSecond vector

Returns: FVector3 - The product of two vectors

negative(FVector3 a)

public static FVector3 negative(FVector3 a)

- Operator overloading

Parameters:

ParameterTypeDescription
aFVector3Input vector

Returns: FVector3 - The negative vector

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:

ParameterTypeDescription
aFVector3First vector
bFVector3Second vector

Returns: FVector3 - The difference of two vectors

toString()

public String toString()

Returns a string that represents the FVector3

Returns: java.lang.String - String representation of this vector.

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int