FVector3
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable
public final class FVector3 implements Struct<FVector3>, Serializable
Ein Float-Vektor mit drei Komponenten.
Konstruktoren
| Konstruktor | Beschreibung |
|---|---|
| FVector3(float x, float y, float z) | Initialisiert eine neue Instanz von FVector3. |
| FVector3(Vector3 vec) | Initialisiert eine neue Instanz von FVector3. |
| FVector3(Vector4 vec) | Initialisiert eine neue Instanz von FVector4. |
| FVector3() |
Felder
| Feld | Beschreibung |
|---|---|
| x | Die x‑Komponente. |
| y | Die y‑Komponente. |
| z | Die y‑Komponente. |
Methoden
| Methode | Beschreibung |
|---|---|
| add(FVector3 a, FVector3 b) | + Operatorüberladung |
| clone() | |
| copyFrom(FVector3 src) | |
| create(FVector3 v) | Expliziter Konvertierungsoperator, um FVector3 in Vector3 zu casten |
| cross(FVector3 rhs) | Kreuzprodukt von zwei Vektoren |
| equals(Object obj) | |
| getClass() | |
| getOne() | Der Einheitsskalenvektor, bei dem alle Komponenten 1 sind |
| getZero() | Der Nullvektor. |
| hashCode() | |
| mul(FVector3 a, float b) | * Operatorüberladung |
| negative(FVector3 a) | - Operatorüberladung |
| normalize() | Normalisiert diese Instanz. |
| notify() | |
| notifyAll() | |
| sub(FVector3 a, FVector3 b) | - Operatorüberladung |
| toString() | Gibt eine Zeichenkette zurück, die das FVector3 darstellt |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
FVector3(float x, float y, float z)
public FVector3(float x, float y, float z)
Initialisiert eine neue Instanz von FVector3.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| x | float | X-Komponente des Vektors |
| y | float | Y-Komponente des Vektors |
| z | float | Z-Komponente des Vektors |
FVector3(Vector3 vec)
public FVector3(Vector3 vec)
Initialisiert eine neue Instanz von FVector3.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| vec | Vector3 | Vector3 im double-Typ |
FVector3(Vector4 vec)
public FVector3(Vector4 vec)
Initialisiert eine neue Instanz von FVector4.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| vec | Vector4 | Vector4 im double-Typ |
FVector3()
public FVector3()
x
public float x
Die x‑Komponente.
y
public float y
Die y‑Komponente.
z
public float z
Die y‑Komponente.
add(FVector3 a, FVector3 b)
public static FVector3 add(FVector3 a, FVector3 b)
+ Operatorüberladung
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| a | FVector3 | Erster Vektor |
| b | FVector3 | Zweiter Vektor |
Returns: FVector3
clone()
public FVector3 clone()
Klone aktuelle Instanz
Returns: FVector3
copyFrom(FVector3 src)
public void copyFrom(FVector3 src)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| src | FVector3 |
create(FVector3 v)
public static Vector3 create(FVector3 v)
Expliziter Konvertierungsoperator, um FVector3 in Vector3 zu casten
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| v | FVector3 | Vector3 im float-Typ |
Returns: Vector3
cross(FVector3 rhs)
public FVector3 cross(FVector3 rhs)
Kreuzprodukt von zwei Vektoren
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| rhs | FVector3 | Rechter Handwert. |
Returns: FVector3 - Cross product of two FVector3s.
equals(Object obj)
public boolean equals(Object obj)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getOne()
public static FVector3 getOne()
Der Einheitsskalenvektor, bei dem alle Komponenten 1 sind
Returns: FVector3 - The unit scale vector with all components are all 1
getZero()
public static FVector3 getZero()
Der Nullvektor.
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überladung
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| a | FVector3 | Erster Vektor |
| b | float | Zweiter Vektor |
Returns: FVector3 - The product of two vectors
negative(FVector3 a)
public static FVector3 negative(FVector3 a)
- Operatorüberladung
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| a | FVector3 | Eingabevektor |
Returns: FVector3 - The negative vector
normalize()
public FVector3 normalize()
Normalisiert diese Instanz.
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überladung
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| a | FVector3 | Erster Vektor |
| b | FVector3 | Zweiter Vektor |
Returns: FVector3 - The difference of two vectors
toString()
public String toString()
Gibt eine Zeichenkette zurück, die das FVector3 darstellt
Returns: java.lang.String - Zeichenkettenrepräsentation dieses 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 |