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

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
UNIT_SCALEThe unit scale vector with all components are all 1
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
xfloat
yfloat
zfloat

FVector3(Vector3 vec)

public FVector3(Vector3 vec)

Initializes a new instance of the FVector3.

Parameters:

ParameterTypeDescription
vecVector3

FVector3(Vector4 vec)

public FVector3(Vector4 vec)

Initializes a new instance of the FVector4.

Parameters:

ParameterTypeDescription
vecVector4

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:

ParameterTypeDescription
aFVector3
bFVector3

Returns: FVector3

clone()

public FVector3 clone()

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
vFVector3

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

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:

ParameterTypeDescription
aFVector3
bfloat

Returns: FVector3

negative(FVector3 a)

public static FVector3 negative(FVector3 a)

- Operator overloading

Parameters:

ParameterTypeDescription
aFVector3

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:

ParameterTypeDescription
aFVector3
bFVector3

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:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int