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
| Konstruktor | Beschreibung |
|---|---|
| FVector2(float x, float y) | Initialisiert eine neue Instanz von FVector2. |
| FVector2(Vector2 vec) | Initialisiert eine neue Instanz von FVector2. |
| FVector2() |
Felder
| Feld | Beschreibung |
|---|---|
| x | Die x‑Komponente. |
| y | Die y‑Komponente. |
Methoden
| Methode | Beschreibung |
|---|---|
| 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:
| Parameter | Typ | Beschreibung |
|---|---|---|
| x | float | X-Komponente des Vektors |
| y | float | Y-Komponente des Vektors |
FVector2(Vector2 vec)
public FVector2(Vector2 vec)
Initialisiert eine neue Instanz von FVector2.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| vec | Vector2 | Vector2 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:
| Parameter | Typ | Beschreibung |
|---|---|---|
| a | FVector2 | Erster Vektor |
| b | FVector2 | Zweiter 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:
| Parameter | Typ | Beschreibung |
|---|---|---|
| src | FVector2 |
create(FVector2 v)
public static Vector2 create(FVector2 v)
Expliziter Konvertierungsoperator zum Umwandeln von FVector2 nach Vector2
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| v | FVector2 | Vector 2 im Float‑Typ. |
Returns: Vector2
equals(FVector2 rhs)
public boolean equals(FVector2 rhs)
Prüfen, ob zwei Vektoren gleich sind
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| rhs | FVector2 |
Returns: boolean - Wahr, wenn alle Komponenten gleich sind.
equals(Object obj)
public boolean equals(Object obj)
Prüfen, ob zwei Vektoren gleich sind
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| obj | java.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:
| Parameter | Typ | Beschreibung |
|---|---|---|
| a | FVector2 | Erster Vektor |
| b | float | Zweiter 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:
| Parameter | Typ | Beschreibung |
|---|---|---|
| a | FVector2 | Erster Vektor |
| b | FVector2 | Zweiter 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:
| Parameter | Typ | Beschreibung |
|---|---|---|
| a | FVector2 | Erster Vektor |
| b | FVector2 | Zweiter 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:
| Parameter | Typ | Beschreibung |
|---|---|---|
| a | FVector2 | Erster Vektor |
| b | FVector2 | Zweiter 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:
| Parameter | Typ | Beschreibung |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| arg0 | long | |
| arg1 | int |