FVector3
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable
public final class FVector3 implements Struct<FVector3>, Serializable
Un vecteur flottant à trois composants.
Constructeurs
| Constructeur | Description |
|---|---|
| FVector3(float x, float y, float z) | Initialise une nouvelle instance de FVector3. |
| FVector3(Vector3 vec) | Initialise une nouvelle instance de FVector3. |
| FVector3(Vector4 vec) | Initialise une nouvelle instance de FVector4. |
| FVector3() |
Champs
| Champ | Description |
|---|---|
| x | Le composant x. |
| y | Le composant y. |
| z | Le composant y. |
Méthodes
| Méthode | Description |
|---|---|
| add(FVector3 a, FVector3 b) | + Surcharge d’opérateur |
| clone() | |
| copyFrom(FVector3 src) | |
| create(FVector3 v) | Opérateur de conversion explicite pour convertir FVector3 en Vector3 |
| cross(FVector3 rhs) | Produit vectoriel de deux vecteurs. |
| equals(Object obj) | |
| getClass() | |
| getOne() | Le vecteur d’échelle unité avec tous les composants égaux à 1 |
| getZero() | Le vecteur zéro. |
| hashCode() | |
| mul(FVector3 a, float b) | * Surcharge d’opérateur |
| negative(FVector3 a) | - Surcharge d’opérateur |
| normalize() | Normalise cette instance. |
| notify() | |
| notifyAll() | |
| sub(FVector3 a, FVector3 b) | - Surcharge d’opérateur |
| toString() | Renvoie une chaîne qui représente le 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)
Initialise une nouvelle instance de FVector3.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| x | float | Composante X du vecteur |
| y | float | Composante Y du vecteur |
| z | float | Composante Z du vecteur |
FVector3(Vector3 vec)
public FVector3(Vector3 vec)
Initialise une nouvelle instance de FVector3.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| vec | Vector3 | Vector3 en type double |
FVector3(Vector4 vec)
public FVector3(Vector4 vec)
Initialise une nouvelle instance de FVector4.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| vec | Vector4 | Vector4 en type double |
FVector3()
public FVector3()
x
public float x
Le composant x.
y
public float y
Le composant y.
z
public float z
Le composant y.
add(FVector3 a, FVector3 b)
public static FVector3 add(FVector3 a, FVector3 b)
+ Surcharge d’opérateur
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| a | FVector3 | Premier vecteur |
| b | FVector3 | Deuxième vecteur |
Returns: FVector3
clone()
public FVector3 clone()
Cloner l’instance actuelle
Returns: FVector3
copyFrom(FVector3 src)
public void copyFrom(FVector3 src)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| src | FVector3 |
create(FVector3 v)
public static Vector3 create(FVector3 v)
Opérateur de conversion explicite pour convertir FVector3 en Vector3
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| v | FVector3 | Vector3 en type float |
Returns: Vector3
cross(FVector3 rhs)
public FVector3 cross(FVector3 rhs)
Produit vectoriel de deux vecteurs.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| rhs | FVector3 | Valeur du côté droit. |
Returns: FVector3 - Cross product of two FVector3s.
equals(Object obj)
public boolean equals(Object obj)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getOne()
public static FVector3 getOne()
Le vecteur d’échelle unité avec tous les composants égaux à 1
Returns: FVector3 - The unit scale vector with all components are all 1
getZero()
public static FVector3 getZero()
Le vecteur zéro.
Returns: FVector3 - The Zero vector.
hashCode()
public int hashCode()
Returns: int
mul(FVector3 a, float b)
public static FVector3 mul(FVector3 a, float b)
* Surcharge d’opérateur
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| a | FVector3 | Premier vecteur |
| b | float | Deuxième vecteur |
Returns: FVector3 - The product of two vectors
negative(FVector3 a)
public static FVector3 negative(FVector3 a)
- Surcharge d’opérateur
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| a | FVector3 | Vecteur d’entrée |
Returns: FVector3 - The negative vector
normalize()
public FVector3 normalize()
Normalise cette 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)
- Surcharge d’opérateur
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| a | FVector3 | Premier vecteur |
| b | FVector3 | Deuxième vecteur |
Returns: FVector3 - The difference of two vectors
toString()
public String toString()
Renvoie une chaîne qui représente le FVector3
Returns: java.lang.String - Représentation sous forme de chaîne de ce vecteur.
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |