FVector2

Inheritance: java.lang.Object

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

public final class FVector2 implements Struct<FVector2>, Serializable

Ein Float-Vektor mit zwei Komponenten.

Konstruktoren

KonstruktorBeschreibung
FVector2(float x, float y)Initialisiert eine neue Instanz von FVector2.
FVector2(Vector2 vec)Initialisiert eine neue Instanz von FVector2.
FVector2()

Felder

FeldBeschreibung
xDie x‑Komponente.
yDie y‑Komponente.

Methoden

MethodeBeschreibung
add(FVector2 a, FVector2 b)+ Operatorüberladung
clone()
copyFrom(FVector2 src)
create(FVector2 v)Expliziter Konvertierungsoperator zum Umwandeln von FVector2 nach Vector2
equals(FVector2 rhs)Prüfen, ob zwei Vektoren gleich sind
equals(Object obj)Prüfen, ob zwei Vektoren gleich sind
getClass()
hashCode()Gibt den Hashcode dieser Instanz zurück
mul(FVector2 a, float b)* Operatorüberladung
notify()
notifyAll()
op_eq(FVector2 a, FVector2 b)== Operatorüberladung
op_ne(FVector2 a, FVector2 b)!= Operatorüberladung
sub(FVector2 a, FVector2 b)- Operatorüberladung
toString()Gibt einen String zurück, der das FVector2 darstellt
wait()
wait(long arg0)
wait(long arg0, int arg1)

FVector2(float x, float y)

public FVector2(float x, float y)

Initialisiert eine neue Instanz von FVector2.

Parameters:

ParameterTypBeschreibung
xfloatX-Komponente des Vektors
yfloatY-Komponente des Vektors

FVector2(Vector2 vec)

public FVector2(Vector2 vec)

Initialisiert eine neue Instanz von FVector2.

Parameters:

ParameterTypBeschreibung
vecVector2Vector2 im Double‑Typ

FVector2()

public FVector2()

x

public float x

Die x‑Komponente.

y

public float y

Die y‑Komponente.

add(FVector2 a, FVector2 b)

public static FVector2 add(FVector2 a, FVector2 b)

+ Operatorüberladung

Parameters:

ParameterTypBeschreibung
aFVector2Erster Vektor
bFVector2Zweiter Vektor

Returns: FVector2 - The sum of two vectors.

clone()

public FVector2 clone()

Klone aktuelle Instanz

Returns: FVector2

copyFrom(FVector2 src)

public void copyFrom(FVector2 src)

Parameters:

ParameterTypBeschreibung
srcFVector2

create(FVector2 v)

public static Vector2 create(FVector2 v)

Expliziter Konvertierungsoperator zum Umwandeln von FVector2 nach Vector2

Parameters:

ParameterTypBeschreibung
vFVector2Vector 2 im Float‑Typ.

Returns: Vector2

equals(FVector2 rhs)

public boolean equals(FVector2 rhs)

Prüfen, ob zwei Vektoren gleich sind

Parameters:

ParameterTypBeschreibung
rhsFVector2

Returns: boolean - Wahr, wenn alle Komponenten gleich sind.

equals(Object obj)

public boolean equals(Object obj)

Prüfen, ob zwei Vektoren gleich sind

Parameters:

ParameterTypBeschreibung
objjava.lang.Object

Returns: boolean - Wahr, wenn die Eingabe ein Vektor ist und alle Komponenten gleich sind.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public int hashCode()

Gibt den Hashcode dieser Instanz zurück

Returns: int - Der Hashcode des Vektors.

mul(FVector2 a, float b)

public static FVector2 mul(FVector2 a, float b)

* Operatorüberladung

Parameters:

ParameterTypBeschreibung
aFVector2Erster Vektor
bfloatZweiter Vektor

Returns: FVector2 - The product of two vectors.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

op_eq(FVector2 a, FVector2 b)

public static boolean op_eq(FVector2 a, FVector2 b)

== Operatorüberladung

Parameters:

ParameterTypBeschreibung
aFVector2Erster Vektor
bFVector2Zweiter Vektor

Returns: boolean - Wahr, wenn alle Komponenten gleich sind.

op_ne(FVector2 a, FVector2 b)

public static boolean op_ne(FVector2 a, FVector2 b)

!= Operator overloading

Parameters:

ParameterTypBeschreibung
aFVector2Erster Vektor
bFVector2Zweiter Vektor

Returns: boolean - Wahr, wenn irgendeine Komponente unterschiedlich ist.

sub(FVector2 a, FVector2 b)

public static FVector2 sub(FVector2 a, FVector2 b)

- Operatorüberladung

Parameters:

ParameterTypBeschreibung
aFVector2Erster Vektor
bFVector2Zweiter Vektor

Returns: FVector2 - The difference of two vectors.

toString()

public String toString()

Gibt einen String zurück, der das FVector2 darstellt

Returns: java.lang.String - String‑Darstellung des aktuellen Vektors.

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypBeschreibung
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypBeschreibung
arg0long
arg1int